]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19956 $PAGE->set_url(...) passes the same arguments to the legacy page object
authormudrd8mz <mudrd8mz>
Wed, 29 Jul 2009 16:38:40 +0000 (16:38 +0000)
committermudrd8mz <mudrd8mz>
Wed, 29 Jul 2009 16:38:40 +0000 (16:38 +0000)
Credit goes to Tim Hunt, thanks for explaining this to me.

lib/pagelib.php

index a90578a8e5e132ec99e06fceaf4b897cb708f0be..5cd170837d882e5f792dc6446958942944e510b7 100644 (file)
@@ -739,7 +739,7 @@ class moodle_page {
             $this->initialise_default_pagetype($shorturl);
         }
         if (!is_null($this->_legacypageobject)) {
-            $this->_legacypageobject->set_url($shorturl, $params);
+            $this->_legacypageobject->set_url($url, $params);
         }
     }