$baserollups = array(
'rollup/' . $rollupversion . "/yui-moodlesimple{$yuiformat}.js",
- 'rollup/' . $jsrev . "/mcore{$format}.js",
);
if ($this->yui3loader->combine) {
}
}
- // Handle the mcore rollup.
- if (strpos($rollupname, 'mcore') !== false) {
- $yuimodules = array(
- 'core/tooltip/tooltip',
- 'core/popuphelp/popuphelp',
- 'core/widget-focusafterclose/widget-focusafterclose',
- 'core/dock/dock-loader',
- 'core/notification/notification-dialogue',
- );
-
- // Determine which version of this rollup should be used.
- $filesuffix = '.js';
- preg_match('/(-(debug|min))?\.js/', $rollupname, $matches);
- if (isset($matches[1])) {
- $filesuffix = $matches[0];
- }
-
- // We need to add these new parts to the beginning of the $parts list, not the end.
- $newparts = array();
- foreach ($yuimodules as $module) {
- $newparts[] = 'm/' . $revision . '/' . $module . $filesuffix;
- }
- $parts = array_merge($newparts, $parts);
- }
continue;
}
if ($version === 'm') {