From: Matthias Schmidt Date: Fri, 12 Aug 2011 20:24:33 +0000 (+0200) Subject: Missing pieces from cronjob commit X-Git-Tag: 2.0.0_Beta_1~1877^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4c3440e0dcd1f6869984b85f566a0bf8c6ad6bb;p=GitHub%2FWoltLab%2FWCF.git Missing pieces from cronjob commit I have no idea what went wrong with that specific commit, but here are again missing pieces of my cronjob commit. This time I replaced the classPath property of a cronjob with className in cronjob log lists. --- diff --git a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl index 665b7ff502..3c21b6a6a8 100644 --- a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl @@ -25,7 +25,7 @@

{lang}wcf.acp.cronjob.cronjobID{/lang}{if $sortField == 'cronjobID'} {/if}

-

{lang}wcf.acp.cronjob.classPath{/lang}{if $sortField == 'classPath'} {/if}

+

{lang}wcf.acp.cronjob.className{/lang}{if $sortField == 'className'} {/if}

{lang}wcf.acp.cronjob.description{/lang}{if $sortField == 'description'} {/if}

{lang}wcf.acp.cronjob.log.execTime{/lang}{if $sortField == 'execTime'} {/if}

@@ -38,7 +38,7 @@ {foreach from=$cronjobLogs item=cronjobLog}

{@$cronjobLog->cronjobID}

-

{$cronjobLog->classPath}

+

{$cronjobLog->className}

{$cronjobLog->description}

{if $cronjobLog->success}

{@$cronjobLog->execTime|time} {lang}wcf.acp.cronjob.log.success{/lang}

diff --git a/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php b/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php index 47edfcadcf..b42aa0d95b 100755 --- a/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php @@ -44,7 +44,7 @@ class CronjobLogListPage extends SortablePage { /** * @see wcf\page\SortablePage::$validSortFields */ - public $validSortFields = array('cronjobID', 'classPath', 'description', 'execTime', 'success'); + public $validSortFields = array('cronjobID', 'className', 'description', 'execTime', 'success'); /** * @see wcf\page\MultipleLinkPage::$objectListClassName @@ -66,7 +66,7 @@ class CronjobLogListPage extends SortablePage { * @see wcf\page\MultipleLinkPage::readObjects() */ protected function readObjects() { - $this->sqlOrderBy = (($this->sortField == 'classPath' || $this->sortField == 'description') ? 'cronjob.' : 'cronjob_log.').$this->sortField." ".$this->sortOrder; + $this->sqlOrderBy = (($this->sortField == 'className' || $this->sortField == 'description') ? 'cronjob.' : 'cronjob_log.').$this->sortField." ".$this->sortOrder; parent::readObjects(); }