Fixes issue when scaling the preview image
authorMatthias Schmidt <gravatronics@live.com>
Tue, 7 May 2013 16:44:41 +0000 (18:44 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 7 May 2013 16:44:41 +0000 (18:44 +0200)
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index cd97bfd235fe0f1a7cdba52b97d8630515f6d488..0edb82df72e5d40312c8c9ca159e170a21ed6b46 100644 (file)
@@ -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);
        }
 }