Remove removed imagePath variable from testing
authorjoshuaruesweg <ruesweg@woltlab.com>
Tue, 4 Aug 2020 13:18:25 +0000 (15:18 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Tue, 4 Aug 2020 13:18:25 +0000 (15:18 +0200)
wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php
wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php

index 5102f514a478561916df9a31a8df8086c119d0f5..fea550318bcbe44c1ead05fb8528f4525c5041c6 100644 (file)
@@ -465,7 +465,7 @@ class StyleAddForm extends AbstractForm {
        public function validateIndividualScss() {
                $variables = array_merge(StyleCompiler::getDefaultVariables(), $this->variables);
                
-               $result = StyleCompiler::getInstance()->testStyle($this->apiVersion, $this->imagePath, $variables);
+               $result = StyleCompiler::getInstance()->testStyle($this->apiVersion, false, $variables);
                
                if ($result !== true) {
                        throw new UserInputException('individualScss', [
index 1e99f44160bef66464c261ea42b6b9e30e1bc4a7..49c34a834c5e6b47e242642e5dbd22ab1fe52989 100644 (file)
@@ -78,7 +78,7 @@ class StyleEditForm extends StyleAddForm {
                
                $variables = array_merge(StyleCompiler::getDefaultVariables(), $variables);
                
-               $result = StyleCompiler::getInstance()->testStyle($this->apiVersion, $this->imagePath, $variables);
+               $result = StyleCompiler::getInstance()->testStyle($this->apiVersion, $this->style->imagePath, $variables);
                
                if ($result !== true) {
                        throw new UserInputException('individualScss', [