]> git.mjollnir.org Git - moodle.git/commit
NOBUG: Fixed bug in $PAGE->set_url() when moodle_url passed
authormudrd8mz <mudrd8mz>
Sat, 5 Sep 2009 17:32:10 +0000 (17:32 +0000)
committermudrd8mz <mudrd8mz>
Sat, 5 Sep 2009 17:32:10 +0000 (17:32 +0000)
commit3a0481a4d87008facdab627cca2c63776a2bc9b6
tree49a12ccaecfb68c767d029a360ec1b99c7be74e3
parentd80eaaf2c8e47eec39a548ea086a23662ad23c7e
NOBUG: Fixed bug in $PAGE->set_url() when moodle_url passed

When moodle_url was passed as a param to set_url(), the str_replace() kept
the leading '/' in the $shorturl. This then led to the <body> classes
like '-mod-workshop' instead of correct 'mod-workshop' (the slash
replaced with minus sign).
lib/pagelib.php