Fixed out-dated cronjob implementations
authorMarcel Werk <burntime@woltlab.com>
Thu, 12 Jan 2017 11:54:52 +0000 (12:54 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 12 Jan 2017 11:54:52 +0000 (12:54 +0100)
wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php
wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php

index 54df41f0d2cfc70faaff81f721709f12bb966cf5..83359f397a3799573368fb4d90aa44f53da6a6a1 100644 (file)
@@ -11,11 +11,13 @@ use wcf\system\package\PackageUpdateDispatcher;
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @package    WoltLabSuite\Core\System\Cronjob
  */
-class GetUpdateInfoCronjob implements ICronjob {
+class GetUpdateInfoCronjob extends AbstractCronjob {
        /**
         * @inheritDoc
         */
        public function execute(Cronjob $cronjob) {
+               parent::execute($cronjob);
+               
                PackageUpdateDispatcher::getInstance()->refreshPackageDatabase();
        }
 }
index 19abd4fa26bd31b85344658ffd454c0de18b282a..db46dcb84cc8235222817fdfabbbcfcb37a923fd 100644 (file)
@@ -14,11 +14,13 @@ use wcf\util\XML;
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @package    WoltLabSuite\Core\System\Cronjob
  */
-class RefreshSearchRobotsCronjob implements ICronjob {
+class RefreshSearchRobotsCronjob extends AbstractCronjob {
        /**
         * @inheritDoc
         */
        public function execute(Cronjob $cronjob) {
+               parent::execute($cronjob);
+               
                $filename = FileUtil::downloadFileFromHttp('http://assets.woltlab.com/spiderlist/typhoon/list.xml', 'spiders');
                $xml = new XML();
                $xml->load($filename);