Fixed cronjobs being initialized within WCFSetup
authorAlexander Ebert <ebert@woltlab.com>
Fri, 1 Jun 2012 10:56:36 +0000 (12:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 1 Jun 2012 10:56:36 +0000 (12:56 +0200)
@BurntimeX: PACKAGE_ID is *always* defined, but resolves to "0" within WCFSetup

wcfsetup/install/files/lib/system/WCF.class.php

index b5d6478486f72150360cd165b57f6f1e4c11101d..a9f9dda1aba4669f7750e58c3de37d4e60bbba16 100644 (file)
@@ -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);
                }
        }