Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/ScheduledTaskTimetable.php')
-rw-r--r--core/ScheduledTaskTimetable.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/ScheduledTaskTimetable.php b/core/ScheduledTaskTimetable.php
index 75d79e688a..92aa1b340e 100644
--- a/core/ScheduledTaskTimetable.php
+++ b/core/ScheduledTaskTimetable.php
@@ -72,9 +72,7 @@ class ScheduledTaskTimetable
*/
public function shouldExecuteTask($taskName)
{
- $forceTaskExecution =
- (isset($GLOBALS['PIWIK_TRACKER_DEBUG_FORCE_SCHEDULED_TASKS']) && $GLOBALS['PIWIK_TRACKER_DEBUG_FORCE_SCHEDULED_TASKS'])
- || DEBUG_FORCE_SCHEDULED_TASKS;
+ $forceTaskExecution = (defined('DEBUG_FORCE_SCHEDULED_TASKS') && DEBUG_FORCE_SCHEDULED_TASKS);
return $forceTaskExecution || ($this->taskHasBeenScheduledOnce($taskName) && time() >= $this->timetable[$taskName]);
}