From: Matthias Schmidt Date: Sat, 27 Apr 2013 21:43:23 +0000 (+0200) Subject: Uses class constant instead of magic number X-Git-Tag: 2.0.0_Beta_1~274^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ac8f0e4826815382571b928c88229d9fe75595f;p=GitHub%2FWoltLab%2FWCF.git Uses class constant instead of magic number --- diff --git a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php index de6fb7466e..d43db9af19 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php @@ -129,7 +129,7 @@ class CronjobScheduler extends SingletonFactory { $data['failCount'] = $failCount; // disable cronjob - if ($failCount == 3) { + if ($failCount == Cronjob::MAX_FAIL_COUNT) { $data['isDisabled'] = 1; $executeCronjob = false; }