MDL-21400 apparently tinymce loading is not compatible with our brand new JS caching yet ;-)

This commit is contained in:
Petr Skoda 2010-02-07 13:26:28 +00:00
parent cd2bbdabb7
commit 4c1f394246

View file

@ -315,7 +315,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)) {
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);