From 9ac8f0e4826815382571b928c88229d9fe75595f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 27 Apr 2013 23:43:23 +0200 Subject: [PATCH] Uses class constant instead of magic number --- .../install/files/lib/system/cronjob/CronjobScheduler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1