MDL-33596 css_optimiser: Added an option for themes to disable the CSS optimiser

This commit is contained in:
Sam Hemelryk 2012-06-08 15:58:37 +12:00
parent f8dfdb524b
commit b305d623a5
3 changed files with 43 additions and 22 deletions

View file

@ -163,4 +163,8 @@ $THEME->javascripts = array(
);
// Sets a custom render factory to use with the theme, used when working with custom renderers.
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
// This theme doesn't support CSS optimisation. The JQuery CSS has already been optimised in a way that
// is not compatible with the CSS optimiser in Moodle.
$THEME->supportscssoptimisation = false;