MDL-43952 Javascript: Support invalidation of browser caches for YUI patching

This will also force files loaded from the CDN to instead come from the
local distribution since those patches will not be included in the CDN
release.

Please see the documentation at http://docs.moodle.org/dev/YUI/Patching for
important on using these changes.
This commit is contained in:
Andrew Nicols
2014-02-04 09:08:53 +08:00
parent 183515da23
commit aea2973734
5 changed files with 103 additions and 11 deletions
+9
View File
@@ -349,6 +349,15 @@ if (!defined('AJAX_SCRIPT')) {
$CFG->yui2version = '2.9.0';
$CFG->yui3version = '3.13.0';
// Patching the upstream YUI release.
// For important information on patching YUI modules, please see http://docs.moodle.org/dev/YUI/Patching.
// If we need to patch a YUI modules between official YUI releases, the yuipatchlevel will need to be manually
// incremented here. The module will also need to be listed in the yuipatchedmodules.
// When upgrading to a subsequent version of YUI, these should be reset back to 0 and an empty array.
$CFG->yuipatchlevel = 0;
$CFG->yuipatchedmodules = array(
);
// Store settings from config.php in array in $CFG - we can use it later to detect problems and overrides.
if (!isset($CFG->config_php_settings)) {
$CFG->config_php_settings = (array)$CFG;