renamed 'ManiaControlDir' constant to fit naming conventions

This commit is contained in:
Steffen Schröder
2014-08-08 14:41:58 +02:00
parent 96d3f1eaba
commit 35a431e396
11 changed files with 29 additions and 27 deletions

View File

@ -128,7 +128,7 @@ class SystemUtil {
Logger::log("Can't restart ManiaControl because the function 'exec' is disabled!");
return;
}
$fileName = ManiaControlDir . 'ManiaControl.sh';
$fileName = MANIACONTROL_PATH . 'ManiaControl.sh';
if (!is_readable($fileName)) {
Logger::log("Can't restart ManiaControl because the file 'ManiaControl.sh' doesn't exist or isn't readable!");
return;
@ -165,7 +165,7 @@ class SystemUtil {
Logger::log("Can't restart ManiaControl because the function 'system' is disabled!");
return;
}
$command = escapeshellarg(ManiaControlDir . "ManiaControl.bat");
$command = escapeshellarg(MANIACONTROL_PATH . "ManiaControl.bat");
system($command); // TODO: windows gets stuck here as long controller is running
}
}