From c82ae202dc19971ffd823ec43fc43db8d5d1d672 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 12 Aug 2011 16:40:01 +0200 Subject: [PATCH] Forgotten changes and temporary removed code piece added again --- .../system/cronjob/CleanUpCronjobLogCronjob.class.php | 5 +++-- .../system/cronjob/CleanUpSessionLogCronjob.class.php | 3 ++- .../system/cronjob/CleanupListenerCronjob.class.php | 3 ++- .../lib/system/cronjob/GetUpdateInfoCronjob.class.php | 5 +++-- .../files/lib/system/cronjob/ICronjob.class.php | 11 ++++------- .../cronjob/RefreshSearchRobotsCronjob.class.php | 7 ++++--- .../CronjobsPackageInstallationPlugin.class.php | 9 +++++++++ 7 files changed, 27 insertions(+), 16 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cronjob/CleanUpCronjobLogCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/CleanUpCronjobLogCronjob.class.php index 528d267cc5..7d69381b24 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CleanUpCronjobLogCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CleanUpCronjobLogCronjob.class.php @@ -1,5 +1,6 @@ prepareStatement($sql); $statement->execute(array( diff --git a/wcfsetup/install/files/lib/system/cronjob/CleanUpSessionLogCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/CleanUpSessionLogCronjob.class.php index 18b2b021ba..13a0d844de 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CleanUpSessionLogCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CleanUpSessionLogCronjob.class.php @@ -1,5 +1,6 @@ execute(); } } diff --git a/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php index 1d9955c63a..564ccebb78 100644 --- a/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php @@ -1,6 +1,7 @@ getElementTree('spiderlist'); @@ -73,6 +74,6 @@ class RefreshSearchRobotsCronjob implements ICronjob { } // delete tmp file - @unlink($filename); + @unlink($filename);*/ } } diff --git a/wcfsetup/install/files/lib/system/package/plugin/CronjobsPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/CronjobsPackageInstallationPlugin.class.php index 8b29bf3221..92c7f58942 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/CronjobsPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/CronjobsPackageInstallationPlugin.class.php @@ -76,4 +76,13 @@ class CronjobsPackageInstallationPlugin extends AbstractXMLPackageInstallationPl protected function findExistingItem(array $data) { return null; } + + /** + * @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::prepareCreate() + */ + protected function prepareCreate(array &$data) { + parent::prepareCreate($data); + + $data['nextExec'] = TIME_NOW; + } } -- 2.20.1