From 04bb2fa2404b31e547d018ea7d23460e9d417150 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 12 Jan 2017 12:54:52 +0100 Subject: [PATCH] Fixed out-dated cronjob implementations --- .../files/lib/system/cronjob/GetUpdateInfoCronjob.class.php | 4 +++- .../lib/system/cronjob/RefreshSearchRobotsCronjob.class.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php index 54df41f0d2..83359f397a 100644 --- a/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/GetUpdateInfoCronjob.class.php @@ -11,11 +11,13 @@ use wcf\system\package\PackageUpdateDispatcher; * @license GNU Lesser General Public License * @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(); } } diff --git a/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php index 19abd4fa26..db46dcb84c 100644 --- a/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php @@ -14,11 +14,13 @@ use wcf\util\XML; * @license GNU Lesser General Public License * @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); -- 2.20.1