throw new coding_exception('Attept to require a JavaScript file that does not exist.', $url);
}
}
- if (!empty($CFG->cachejs) and !empty($CFG->jsrev) and strpos($url, '/lib/editor/') != 0) {
+ if (!empty($CFG->cachejs) and !empty($CFG->jsrev) and strpos($url, '/lib/editor/') !== 0) {
return new moodle_url($CFG->httpswwwroot.'/lib/javascript.php', array('file'=>$url, 'rev'=>$CFG->jsrev));
} else {
return new moodle_url($CFG->httpswwwroot.$url);
}
$module['fullpath'] = $this->js_fix_url($module['fullpath'])->out(false);
-
// add all needed strings
if (!empty($module['strings'])) {
foreach ($module['strings'] as $string) {