add lastActivity to sort fields
authorjoshuaruesweg <josh@joshsboard.de>
Thu, 10 Jul 2014 12:12:42 +0000 (14:12 +0200)
committerjoshuaruesweg <josh@joshsboard.de>
Thu, 10 Jul 2014 12:12:42 +0000 (14:12 +0200)
com.woltlab.wcf/templates/membersList.tpl
wcfsetup/install/files/lib/page/MembersListPage.class.php

index 9955663a4b51217e7a83b889934d124461eabf82..8b538358e7adfba28f6a2ed766635326e74617e9 100644 (file)
@@ -80,6 +80,7 @@
                                                        <option value="registrationDate"{if $sortField == 'registrationDate'} selected="selected"{/if}>{lang}wcf.user.registrationDate{/lang}</option>
                                                        <option value="activityPoints"{if $sortField == 'activityPoints'} selected="selected"{/if}>{lang}wcf.user.activityPoint{/lang}</option>
                                                        <option value="likesReceived"{if $sortField == 'likesReceived'} selected="selected"{/if}>{lang}wcf.like.likesReceived{/lang}</option>
+                                                       <option value="lastActivityTime"{if $sortField == 'lastActivityTime'} selected="selected"{/if}>{lang}wcf.user.usersOnline.lastActivity{/lang}</option>
                                                        {event name='sortField'}
                                                </select>
                                                <select name="sortOrder">
index 4015cbe626002c50961fe817942e89883ffa7061..82869b93c13c0a612ec6bfc023d83b7b75d60325 100644 (file)
@@ -62,7 +62,7 @@ class MembersListPage extends SortablePage {
        /**
         * @see \wcf\page\SortablePage::$validSortFields
         */
-       public $validSortFields = array('username', 'registrationDate', 'activityPoints', 'likesReceived');
+       public $validSortFields = array('username', 'registrationDate', 'activityPoints', 'likesReceived', 'lastActivityTime');
        
        /**
         * @see \wcf\page\MultipleLinkPage::$objectListClassName