Improve declaration of whoWasOnlineTimeFormat
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 25 Aug 2016 20:59:56 +0000 (22:59 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 25 Aug 2016 21:08:02 +0000 (23:08 +0200)
WCF::getLanguage()->get() is automatically used inside DateUtil
and thus the |date modifier.

wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php

index f7f164a2b1d82076fac2f5d273b2817f3e86a9e1..a9fcd50a33a33a6a37f0131754c21949602f637f 100644 (file)
@@ -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
                ]);
        }