From: Marcel Werk Date: Thu, 5 Feb 2015 18:39:55 +0000 (+0100) Subject: Changed session owner to 'system' during execution of cronjobs X-Git-Tag: 2.1.0_RC_1~80 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9e46e67aea87025743cfc9537700c48c2a4dc17;p=GitHub%2FWoltLab%2FWCF.git Changed session owner to 'system' during execution of cronjobs --- diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php index cdc6d811cd..0d69922926 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php @@ -1,6 +1,7 @@ changeUser(new User(null, array('userID' => 0, 'username' => 'System')), true); + WCF::getSession()->disableUpdate(); + CronjobScheduler::getInstance()->executeCronjobs(); } }