From 5114fe38d7d6d3a24cecf41ac6d7fa66a5439f28 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 7 May 2013 18:44:41 +0200 Subject: [PATCH] Fixes issue when scaling the preview image --- wcfsetup/install/files/lib/data/style/StyleEditor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index cd97bfd235..0edb82df72 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -863,6 +863,6 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject $adapter = ImageHandler::getInstance()->getAdapter(); $adapter->loadFile(WCF_DIR.'images/'.$filename); $thumbnail = $adapter->createThumbnail(Style::PREVIEW_IMAGE_MAX_WIDTH, Style::PREVIEW_IMAGE_MAX_HEIGHT); - $adapter->writeImage($thumbnail, $filename); + $adapter->writeImage($thumbnail, WCF_DIR.'images/'.$filename); } } -- 2.20.1