From 058e3880dd183ddd6772f88e27ae01f9fda10be0 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 12 Apr 2012 22:36:54 +0200 Subject: [PATCH] Adds some newlines to CacheClearAction --- .../files/lib/acp/action/CacheClearAction.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php index 51b5ab252a..d5860305ea 100644 --- a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php @@ -26,12 +26,14 @@ class CacheClearAction extends AbstractAction { * @see wcf\action\AbstractAction::$neededPermissions */ public $neededPermissions = array('admin.system.canViewLog'); + /** * @see wcf\action\IAction::execute() */ public function execute() { parent::execute(); - // this will clean up the templates as well + + // delete templates as well LanguageFactory::getInstance()->deleteLanguageCache(); $conditions = new PreparedStatementConditionBuilder(); @@ -49,9 +51,9 @@ class CacheClearAction extends AbstractAction { try { CacheHandler::getInstance()->clear($packageDir.'cache', '*.php'); } - catch (SystemException $e) { - } + catch (SystemException $e) { } } + $this->executed(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('CacheList')); exit; -- 2.20.1