From 845215d82669b0486ba0e53bf5f9150f14b16fd6 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Wed, 29 Nov 2017 10:41:50 +0800 Subject: [PATCH] MDL-60925 theme: Fix SCSS precompilation. There is no point pre-compiling the theme SCSS if it is not stored somewhere that is available to all webserving nodes. Localcache needs to be backed by the MUC cache. --- lib/outputlib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/outputlib.php b/lib/outputlib.php index 6d101b37660..7a8beff5226 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -201,10 +201,13 @@ function theme_build_css_for_themes($themeconfigs = [], $directions = ['rtl', 'l // First generate all the new css. foreach ($directions as $direction) { + // Lock it on. Technically we should build all themes for SVG and no SVG - but ie9 is out of support. + $themeconfig->force_svg_use(true); $themeconfig->set_rtl_mode(($direction === 'rtl')); $themecss[$direction] = $themeconfig->get_css_content(); if ($cache) { + $themeconfig->set_css_content_cache($themecss[$direction]); $filename = theme_get_css_filename($themeconfig->name, $themerev, $newrevision, $direction); css_store_css($themeconfig, $filename, $themecss[$direction]); }