From: Marcel Werk Date: Fri, 12 Apr 2013 18:33:57 +0000 (+0200) Subject: Small optimization X-Git-Tag: 2.0.0_Beta_1~374 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b209544bcfdc39be741b319958c35306dceeedd8;p=GitHub%2FWoltLab%2FWCF.git Small optimization --- diff --git a/wcfsetup/install/files/acp/install.php b/wcfsetup/install/files/acp/install.php index 81a9916150..c6d38d0ba5 100644 --- a/wcfsetup/install/files/acp/install.php +++ b/wcfsetup/install/files/acp/install.php @@ -5,6 +5,7 @@ use wcf\system\cache\CacheHandler; use wcf\system\session\SessionHandler; use wcf\system\template\ACPTemplateEngine; use wcf\system\WCF; +use wcf\util\DateUtil; /** * @author Marcel Werk @@ -68,7 +69,7 @@ ACPTemplateEngine::deleteCompiledTemplates(WCF_DIR.'acp/templates/compiled/'); // get server timezone if ($timezone = @date_default_timezone_get()) { - if ($timezone != 'Europe/London' && in_array($timezone, \wcf\util\DateUtil::getAvailableTimezones())) { + if ($timezone != 'Europe/London' && in_array($timezone, DateUtil::getAvailableTimezones())) { $sql = "UPDATE wcf".WCF_N."_option SET optionValue = ? WHERE optionName = ?";