From: Alexander Ebert Date: Fri, 1 Jun 2012 10:56:36 +0000 (+0200) Subject: Fixed cronjobs being initialized within WCFSetup X-Git-Tag: 2.0.0_Beta_1~1087 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54524b5d79eac366e609d690c1ccc03d3f3dd783;p=GitHub%2FWoltLab%2FWCF.git Fixed cronjobs being initialized within WCFSetup @BurntimeX: PACKAGE_ID is *always* defined, but resolves to "0" within WCFSetup --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index b5d6478486..a9f9dda1ab 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -653,7 +653,7 @@ class WCF { * Initialises the cronjobs. */ protected function initCronjobs() { - if (defined('PACKAGE_ID')) { + if (PACKAGE_ID) { self::getTPL()->assign('executeCronjobs', CronjobScheduler::getInstance()->getNextExec() < TIME_NOW); } }