Typo at addon-directory-name ...

This commit is contained in:
Philipp Holzer 2019-02-04 02:14:20 +01:00
parent f2f8c97b7c
commit bdfe0c35fb
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

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