MDL-21240 shortened urls now start with / everywhere
This commit is contained in:
@@ -866,10 +866,10 @@ class default_questiontype {
|
||||
$plugindirrel = 'question/type/' . $this->name();
|
||||
|
||||
if (file_exists($plugindir . '/script.js')) {
|
||||
$PAGE->requires->js($plugindirrel . '/script.js');
|
||||
$PAGE->requires->js('/' . $plugindirrel . '/script.js');
|
||||
}
|
||||
if (file_exists($plugindir . '/script.php')) {
|
||||
$PAGE->requires->js($plugindirrel . '/script.php');
|
||||
$PAGE->requires->js('/' . $plugindirrel . '/script.php');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user