Fix image path on editing styles
authorjoshuaruesweg <ruesweg@woltlab.com>
Mon, 17 Aug 2020 13:50:25 +0000 (15:50 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Mon, 17 Aug 2020 13:50:25 +0000 (15:50 +0200)
wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php

index e2ddd55d8d1b0d1a93d8d91407d14350ce5ed8b5..d07af7be41c4c93c9bda90b49a74cc5057d2e389 100644 (file)
@@ -82,7 +82,7 @@ class StyleEditForm extends StyleAddForm {
                $this->styleTestFileDir = FileUtil::getTemporaryFilename('style_');
                FileUtil::makePath($this->styleTestFileDir);
                
-               $result = StyleCompiler::getInstance()->testStyle($this->styleTestFileDir, $this->apiVersion, false, $variables);
+               $result = StyleCompiler::getInstance()->testStyle($this->styleTestFileDir, $this->apiVersion, $this->style->imagePath, $variables);
                
                if ($result !== null) {
                        rmdir($this->styleTestFileDir);