Fixed resetCache()-method
authorMatthias Schmidt <gravatronics@live.com>
Tue, 9 Aug 2011 08:44:28 +0000 (10:44 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 9 Aug 2011 08:44:28 +0000 (10:44 +0200)
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index bbcdd938e213df35fa36dc5609aa507eddb5eb98..339aa95e4e935413550574365956de6be81e9895 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\template\group\TemplateGroupEditor;
 use wcf\data\template\TemplateEditor;
 use wcf\data\DatabaseObjectEditor;
 use wcf\data\IEditableCachedObject;
+use wcf\system\cache\CacheHandler;
 use wcf\system\exception\SystemException;
 use wcf\system\image\Thumbnail;
 use wcf\system\io\File;
@@ -849,7 +850,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
         * @see wcf\data\IEditableCachedObject::resetCache()
         */
        public static function resetCache() {
-               WCF::getCache()->clear(WCF_DIR.'cache', 'cache.icon-*-'.$this->styleID.'.php');
+               CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.icon-*-*.php');
        }
        
        /**