fixed wrong != that was breaking js caching
This commit is contained in:
@@ -352,7 +352,7 @@ class page_requirements_manager {
|
||||
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);
|
||||
@@ -484,7 +484,6 @@ class page_requirements_manager {
|
||||
}
|
||||
|
||||
$module['fullpath'] = $this->js_fix_url($module['fullpath'])->out(false);
|
||||
|
||||
// add all needed strings
|
||||
if (!empty($module['strings'])) {
|
||||
foreach ($module['strings'] as $string) {
|
||||
|
||||
Reference in New Issue
Block a user