From 9726451e3b6d2148cbcd26d9096b0010b51ff953 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Mon, 17 Aug 2020 15:50:25 +0200 Subject: [PATCH] Fix image path on editing styles --- wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1