From: joshuaruesweg Date: Tue, 4 Aug 2020 13:18:25 +0000 (+0200) Subject: Remove removed imagePath variable from testing X-Git-Tag: 5.3.0_Alpha_1~56^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8365276225f125ffd163a848723a41d7e3e4cafd;p=GitHub%2FWoltLab%2FWCF.git Remove removed imagePath variable from testing --- diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index 5102f514a4..fea550318b 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -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', [ diff --git a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php index 1e99f44160..49c34a834c 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php @@ -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', [