From af202eb1a2e13f9c8caf2b33bf75c2ca49d34ccc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 25 Aug 2016 22:59:56 +0200 Subject: [PATCH] Improve declaration of whoWasOnlineTimeFormat WCF::getLanguage()->get() is automatically used inside DateUtil and thus the |date modifier. --- .../files/lib/system/box/WhoWasOnlineBoxController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ]); } -- 2.20.1