From: joshuaruesweg Date: Mon, 17 Aug 2020 13:50:25 +0000 (+0200) Subject: Fix image path on editing styles X-Git-Tag: 5.3.0_Alpha_1~56^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9726451e3b6d2148cbcd26d9096b0010b51ff953;p=GitHub%2FWoltLab%2FWCF.git Fix image path on editing styles --- diff --git a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php index e2ddd55d8d..d07af7be41 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php @@ -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);