From 8365276225f125ffd163a848723a41d7e3e4cafd Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Tue, 4 Aug 2020 15:18:25 +0200 Subject: [PATCH] Remove removed imagePath variable from testing --- wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', [ -- 2.20.1