Updating type-hints and some naming conventions

This commit is contained in:
Philipp Holzer 2019-02-04 09:30:48 +01:00
parent 1c51d7d22f
commit d78ac57514
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
9 changed files with 74 additions and 74 deletions

View file

@ -21,7 +21,7 @@ class ConfigCacheLoader
* The addon sub-directory
* @var string
*/
const ADDONSDIRECTORY = '/addons/';
const ADDONDIRECTORY = '/addon/';
private $baseDir;
private $configDir;
@ -141,7 +141,7 @@ class ConfigCacheLoader
public function loadConfigFile($filename, $addon = false)
{
if ($addon) {
$filepath = $this->baseDir . self::ADDONSDIRECTORY . $filename . self::SUBDIRECTORY . $filename . ".config.php";
$filepath = $this->baseDir . self::ADDONDIRECTORY . $filename . self::SUBDIRECTORY . $filename . ".config.php";
} else {
$filepath = $this->configDir . $filename . ".config.php";
}