Fixed SCSS variables (used LESS syntax)
authorAlexander Ebert <ebert@woltlab.com>
Sat, 12 Mar 2016 12:50:45 +0000 (13:50 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 12 Mar 2016 12:50:45 +0000 (13:50 +0100)
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php

index b019aaf12d61a146a94a22a5dfe5509690941bdc..a6c655a05e1f1b58c8ffea981091859904acb27f 100644 (file)
@@ -297,7 +297,7 @@ class StyleCompiler extends SingletonFactory {
                if (PACKAGE_ID) {
                        foreach (Option::getOptions() as $constantName => $option) {
                                if (in_array($option->optionType, static::$supportedOptionType)) {
-                                       $variables['wcf_option_'.mb_strtolower($constantName)] = '~"'.$option->optionValue.'"';
+                                       $variables['wcf_option_'.mb_strtolower($constantName)] = (is_integer($option->optionValue)) ? $option->optionValue : '"'.$option->optionValue.'"';
                                }
                        }
                }