renamed DEBUG_MODE to DEV_MODE

This commit is contained in:
Steffen Schröder 2014-05-18 23:51:20 +02:00
parent 5cf86b2025
commit fedf1710a2
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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';

View File

@ -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;
}