From ec32e626be81fc31be2a0d0cd432b72a7d03b33e Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 6 Jul 2010 09:42:44 +0000 Subject: [PATCH] fixed wrong != that was breaking js caching --- lib/outputrequirementslib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index 4068f901800..b832086b11c 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -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) {