fixed wrong != that was breaking js caching
authorPetr Skoda <skodak@moodle.org>
Tue, 6 Jul 2010 09:42:44 +0000 (09:42 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 6 Jul 2010 09:42:44 +0000 (09:42 +0000)
lib/outputrequirementslib.php

index 4068f90..b832086 100644 (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) {