mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
lib/pagelib Improved the debugging message about set_url
This commit is contained in:
parent
de6d81e667
commit
c1df9d7c51
1 changed files with 2 additions and 2 deletions
|
@ -350,9 +350,9 @@ class moodle_page {
|
||||||
* should normally use this in preference to $ME or $FULLME.)
|
* should normally use this in preference to $ME or $FULLME.)
|
||||||
*/
|
*/
|
||||||
public function get_url() {
|
public function get_url() {
|
||||||
if (is_null($this->_url)) {
|
|
||||||
debugging('This page did no call $PAGE->set_url(...). Relaying on a guess.', DEBUG_DEVELOPER);
|
|
||||||
global $FULLME;
|
global $FULLME;
|
||||||
|
if (is_null($this->_url)) {
|
||||||
|
debugging('This page did not call $PAGE->set_url(...). Using '.s($FULLME), DEBUG_DEVELOPER);
|
||||||
$this->_url = new moodle_url($FULLME);
|
$this->_url = new moodle_url($FULLME);
|
||||||
// Make sure the guessed URL cannot lead to dangerous redirects.
|
// Make sure the guessed URL cannot lead to dangerous redirects.
|
||||||
$this->_url->remove_params('sesskey');
|
$this->_url->remove_params('sesskey');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue