]> git.mjollnir.org Git - moodle.git/commitdiff
lib/pagelib Improved the debugging message about set_url
authormoodler <moodler>
Thu, 3 Sep 2009 07:47:43 +0000 (07:47 +0000)
committermoodler <moodler>
Thu, 3 Sep 2009 07:47:43 +0000 (07:47 +0000)
lib/pagelib.php

index 4cf2cd2106d46aae8bb07e53e47e403e948c2f51..f4d1b2e54c0cb194c41aa737b0319313bf8eb73c 100644 (file)
@@ -350,9 +350,9 @@ class moodle_page {
      * 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');