From f9deebefb95a2661fa78da3bf2e52a1c3696c880 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 17 Aug 2015 10:59:46 +1000 Subject: [PATCH] FIX: include theme vars in site customizations --- app/models/site_customization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/site_customization.rb b/app/models/site_customization.rb index 4b316a067..ad04f261c 100644 --- a/app/models/site_customization.rb +++ b/app/models/site_customization.rb @@ -17,7 +17,7 @@ class SiteCustomization < ActiveRecord::Base end def compile_stylesheet(scss) - DiscourseSassCompiler.compile(scss, 'custom') + DiscourseSassCompiler.compile("@import \"theme_variables\";\n" << scss, 'custom') rescue => e puts e.backtrace.join("\n") unless Sass::SyntaxError === e raise e