From fedf1710a2eb1656d818b215aff74d54bbe82726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sun, 18 May 2014 23:51:20 +0200 Subject: [PATCH] renamed DEBUG_MODE to DEV_MODE --- application/core/ErrorHandler.php | 4 ++-- application/core/ManiaControl.php | 2 +- application/core/Server/UsageReporter.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/core/ErrorHandler.php b/application/core/ErrorHandler.php index 98d96eb2..358454e6 100644 --- a/application/core/ErrorHandler.php +++ b/application/core/ErrorHandler.php @@ -58,7 +58,7 @@ class ErrorHandler { $logMessage = $message . PHP_EOL . 'Class: ' . $exceptionClass . PHP_EOL . 'Trace:' . PHP_EOL . $traceString; $this->maniaControl->log($logMessage); - if (!ManiaControl::DEBUG_MODE) { + if (!ManiaControl::DEV_MODE) { $error = array(); $error['Type'] = 'Exception'; $error['Message'] = $message; @@ -216,7 +216,7 @@ class ErrorHandler { $logMessage = $message . PHP_EOL . 'File&Line: ' . $fileLine . PHP_EOL . 'Trace: ' . $traceString; $this->maniaControl->log($logMessage); - if (!ManiaControl::DEBUG_MODE && !$this->isUserErrorNumber($errorNumber) && !$suppressed) { + if (!ManiaControl::DEV_MODE && !$this->isUserErrorNumber($errorNumber) && !$suppressed) { $error = array(); $error['Type'] = 'Error'; $error['Message'] = $message; diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index 89b1cda9..c90285d7 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -52,7 +52,7 @@ class ManiaControl implements CommandListener, TimerListener { const OS_UNIX = 'Unix'; const OS_WIN = 'Windows'; const SCRIPT_TIMEOUT = 10; - const DEBUG_MODE = false; + const DEV_MODE = false; const URL_WEBSERVICE = 'http://ws.maniacontrol.com/'; const SETTING_PERMISSION_SHUTDOWN = 'Shutdown ManiaControl'; const SETTING_PERMISSION_RESTART = 'Restart ManiaControl'; diff --git a/application/core/Server/UsageReporter.php b/application/core/Server/UsageReporter.php index f4d68b05..8ad2fd8c 100644 --- a/application/core/Server/UsageReporter.php +++ b/application/core/Server/UsageReporter.php @@ -46,7 +46,7 @@ class UsageReporter implements TimerListener { * @param float $time */ public function reportUsage($time) { - if (ManiaControl::DEBUG_MODE || !$this->maniaControl->settingManager->getSettingValue($this, self::SETTING_REPORT_USAGE)) { + if (ManiaControl::DEV_MODE || !$this->maniaControl->settingManager->getSettingValue($this, self::SETTING_REPORT_USAGE)) { return; }