From: Matthias Schmidt Date: Tue, 7 May 2013 16:44:41 +0000 (+0200) Subject: Fixes issue when scaling the preview image X-Git-Tag: 2.0.0_Beta_1~231 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5114fe38d7d6d3a24cecf41ac6d7fa66a5439f28;p=GitHub%2FWoltLab%2FWCF.git Fixes issue when scaling the preview image --- 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); } }