From: Matthias Schmidt Date: Thu, 12 Apr 2012 20:36:54 +0000 (+0200) Subject: Adds some newlines to CacheClearAction X-Git-Tag: 2.0.0_Beta_1~1028^2~9^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=058e3880dd183ddd6772f88e27ae01f9fda10be0;p=GitHub%2FWoltLab%2FWCF.git Adds some newlines to CacheClearAction --- 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;