Merge branch 'MDL-44214-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Damyon Wiese 2014-02-24 14:41:29 +08:00
commit f08c69aba2
2 changed files with 8 additions and 2 deletions

View File

@ -1225,8 +1225,13 @@ class page_requirements_manager {
$format = '-debug';
}
$rollupversion = $CFG->yui3version;
if (!empty($CFG->yuipatchlevel)) {
$rollupversion .= '_' . $CFG->yuipatchlevel;
}
$baserollups = array(
'rollup/' . $CFG->yui3version . "/yui-moodlesimple{$yuiformat}.js",
'rollup/' . $rollupversion . "/yui-moodlesimple{$yuiformat}.js",
'rollup/' . $jsrev . "/mcore{$format}.js",
);

View File

@ -83,7 +83,8 @@ while (count($parts)) {
$version = array_shift($bits);
if ($version === 'rollup') {
$revision = array_shift($bits);
$yuipatchedversion = explode('_', array_shift($bits));
$revision = $yuipatchedversion[0];
$rollupname = array_shift($bits);
if (strpos($rollupname, 'yui-moodlesimple') !== false) {