MDL-21240 shortened urls now start with / everywhere

This commit is contained in:
Petr Skoda
2010-01-18 20:57:32 +00:00
parent f2ab0d0694
commit 9dec75dbcc
87 changed files with 125 additions and 125 deletions
+1 -1
View File
@@ -1698,7 +1698,7 @@ function require_js($lib) {
if (strpos($lib, 'yui_') === 0) {
$PAGE->requires->yui2_lib(substr($lib, 4));
} else if (preg_match('/^https?:/', $lib)) {
echo $PAGE->requires->js(str_replace($CFG->wwwroot, '', $lib))->asap();
echo $PAGE->requires->js(str_replace($CFG->wwwroot, '/', $lib))->asap();
} else {
echo $PAGE->requires->js($lib)->asap();
}