From: Alexander Ebert Date: Mon, 2 Mar 2015 14:20:42 +0000 (+0100) Subject: Copying a style did not reset the style cache X-Git-Tag: 2.1.1~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=787263fc0d23fbfc4e5aaa3bad7c3b43dc0b59d4;p=GitHub%2FWoltLab%2FWCF.git Copying a style did not reset the style cache --- diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index 21c5a0ed3a..8e120a3307 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -2,6 +2,7 @@ namespace wcf\data\style; use wcf\data\AbstractDatabaseObjectAction; use wcf\data\IToggleAction; +use wcf\system\cache\builder\StyleCacheBuilder; use wcf\system\exception\IllegalLinkException; use wcf\system\exception\PermissionDeniedException; use wcf\system\exception\SystemException; @@ -510,6 +511,8 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction } } + StyleCacheBuilder::getInstance()->reset(); + return array( 'redirectURL' => LinkHandler::getInstance()->getLink('StyleEdit', array('id' => $newStyle->styleID)) );