From 787263fc0d23fbfc4e5aaa3bad7c3b43dc0b59d4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 2 Mar 2015 15:20:42 +0100 Subject: [PATCH] Copying a style did not reset the style cache --- wcfsetup/install/files/lib/data/style/StyleAction.class.php | 3 +++ 1 file changed, 3 insertions(+) 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)) ); -- 2.20.1