From: Tim Düsterhus Date: Thu, 25 Aug 2016 20:59:56 +0000 (+0200) Subject: Improve declaration of whoWasOnlineTimeFormat X-Git-Tag: 3.0.0_Beta_1~497 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af202eb1a2e13f9c8caf2b33bf75c2ca49d34ccc;p=GitHub%2FWoltLab%2FWCF.git Improve declaration of whoWasOnlineTimeFormat WCF::getLanguage()->get() is automatically used inside DateUtil and thus the |date modifier. --- diff --git a/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php b/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php index f7f164a2b1..a9fcd50a33 100644 --- a/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php @@ -7,6 +7,7 @@ use wcf\system\cache\builder\WhoWasOnlineCacheBuilder; use wcf\system\cache\runtime\UserProfileRuntimeCache; use wcf\system\event\EventHandler; use wcf\system\WCF; +use wcf\util\DateUtil; /** * Box controller for a list of registered users that visited the website in last 24 hours. @@ -56,7 +57,7 @@ class WhoWasOnlineBoxController extends AbstractDatabaseObjectListBoxController return WCF::getTPL()->fetch('boxWhoWasOnline', 'wcf', [ 'whoWasOnlineList' => $this->users, 'boxPosition' => $this->box->position, - 'whoWasOnlineTimeFormat' => WCF::getLanguage()->get('wcf.date.timeFormat') + 'whoWasOnlineTimeFormat' => DateUtil::TIME_FORMAT ]); }