From c4c3440e0dcd1f6869984b85f566a0bf8c6ad6bb Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 12 Aug 2011 22:24:33 +0200 Subject: [PATCH] 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. --- wcfsetup/install/files/acp/templates/cronjobLogList.tpl | 4 ++-- .../install/files/lib/acp/page/CronjobLogListPage.class.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); } -- 2.20.1