From: Marcel Werk Date: Thu, 12 Jan 2017 11:54:52 +0000 (+0100) Subject: Fixed out-dated cronjob implementations X-Git-Tag: 3.0.1~54 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04bb2fa2404b31e547d018ea7d23460e9d417150;p=GitHub%2FWoltLab%2FWCF.git Fixed out-dated cronjob implementations --- 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);