fixed wrong != that was breaking js caching

This commit is contained in:
Petr Skoda
2010-07-06 09:42:44 +00:00
parent 0f31850a35
commit ec32e626be
+1 -2
View File
@@ -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) {