Skip to content

Commit

Permalink
lib/pagelib Improved the debugging message about set_url
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 3, 2009
1 parent de6d81e commit c1df9d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pagelib.php
Expand Up @@ -350,9 +350,9 @@ public function get_docspath() {
* should normally use this in preference to $ME or $FULLME.)
*/
public function get_url() {
global $FULLME;
if (is_null($this->_url)) {
debugging('This page did no call $PAGE->set_url(...). Relaying on a guess.', DEBUG_DEVELOPER);
global $FULLME;
debugging('This page did not call $PAGE->set_url(...). Using '.s($FULLME), DEBUG_DEVELOPER);
$this->_url = new moodle_url($FULLME);
// Make sure the guessed URL cannot lead to dangerous redirects.
$this->_url->remove_params('sesskey');
Expand Down

0 comments on commit c1df9d7

Please sign in to comment.