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

@ -321,7 +321,7 @@ class ErrorHandler {
}
/**
* Build a String from an Arguments Array
* Build a string from an arguments array
*
* @param array $args
* @return string
@ -361,17 +361,17 @@ class ErrorHandler {
}
/**
* Strip the ManiaControlDir from the given Path to ensure privacy
* Strip the ManiaControl path from the given path to ensure privacy
*
* @param string $path
* @return string
*/
private static function stripBaseDir($path) {
return str_replace(ManiaControlDir, '', $path);
return str_replace(MANIACONTROL_PATH, '', $path);
}
/**
* Get the Source Class via the Error File
* Get the source class via the error file
*
* @param string $errorFile
* @return string
@ -380,7 +380,7 @@ class ErrorHandler {
if (!$errorFile) {
return null;
}
$filePath = substr($errorFile, strlen(ManiaControlDir));
$filePath = substr($errorFile, strlen(MANIACONTROL_PATH));
$filePath = str_replace('plugins' . DIRECTORY_SEPARATOR, '', $filePath);
$filePath = str_replace('core' . DIRECTORY_SEPARATOR, 'ManiaControl\\', $filePath);
$className = str_replace('.php', '', $filePath);