Small optimization
authorMarcel Werk <burntime@woltlab.com>
Wed, 18 Dec 2013 00:10:34 +0000 (01:10 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 18 Dec 2013 00:10:34 +0000 (01:10 +0100)
wcfsetup/install/files/acp/templates/cronjobList.tpl
wcfsetup/install/files/lib/acp/page/CronjobListPage.class.php

index 2860c0f58e38537eb5725aca624ce6dad64a768b..6485f436f54b450d42f3f246c834c350913c10ff 100644 (file)
@@ -43,7 +43,7 @@
                                        <th class="columnDate columnStartDom{if $sortField == 'startDom'} active {@$sortOrder}{/if}" title="{lang}wcf.acp.cronjob.startDom{/lang}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=startDom&sortOrder={if $sortField == 'startDom' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.cronjob.startDomShort{/lang}</a></th>
                                        <th class="columnDate columnStartMonth{if $sortField == 'startMonth'} active {@$sortOrder}{/if}" title="{lang}wcf.acp.cronjob.startMonth{/lang}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=startMonth&sortOrder={if $sortField == 'startMonth' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.cronjob.startMonthShort{/lang}</a></th>
                                        <th class="columnDate columnStartDow{if $sortField == 'startDow'} active {@$sortOrder}{/if}" title="{lang}wcf.acp.cronjob.startDow{/lang}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=startDow&sortOrder={if $sortField == 'startDow' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.cronjob.startDowShort{/lang}</a></th>
-                                       <th class="columnText columnDescription{if $sortField == 'description'} active {@$sortOrder}{/if}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=description&sortOrder={if $sortField == 'description' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.cronjob.description{/lang}</a></th>
+                                       <th class="columnText columnDescription">{lang}wcf.acp.cronjob.description{/lang}</th>
                                        <th class="columnDate columnNextExec{if $sortField == 'nextExec'} active {@$sortOrder}{/if}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=nextExec&sortOrder={if $sortField == 'nextExec' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.cronjob.nextExec{/lang}</a></th>
                                        
                                        {event name='columnHeads'}
index 7c58b04c365affe72f61ccf11758a54f4420bd94..025fbb19c3b270c6652e418daeae28f5dca9e6a2 100755 (executable)
@@ -26,12 +26,12 @@ class CronjobListPage extends SortablePage {
        /**
         * @see \wcf\page\SortablePage::$defaultSortField
         */
-       public $defaultSortField = 'description';
+       public $defaultSortField = 'cronjobID';
        
        /**
         * @see \wcf\page\SortablePage::$validSortFields
         */
-       public $validSortFields = array('description', 'cronjobID', 'nextExec', 'startMinute', 'startHour', 'startDom', 'startMonth', 'startDow');
+       public $validSortFields = array('cronjobID', 'nextExec', 'startMinute', 'startHour', 'startDom', 'startMonth', 'startDow');
        
        /**
         * @see \wcf\page\MultipleLinkPage::$objectListClassName