From 9018ca445de09e3c840be1234e4b10e3e54822e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 5 Aug 2020 13:37:45 +0200 Subject: [PATCH] Do not hardcode the style's asset path in the update script Co-authored-by: Alexander Ebert --- wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_style.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_style.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_style.php index 95a2bcb504..092d95bbd6 100644 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_style.php +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_style.php @@ -55,7 +55,7 @@ foreach ($styleList as $style) { } } $styleEditor->update([ - 'imagePath' => 'images/style-' . $style->styleID . '/', + 'imagePath' => FileUtil::unifyDirSeparator(FileUtil::getRelativePath(WCF_DIR, $style->getAssetPath())), ]); // 4) Copy style previews into the asset folder. -- 2.20.1