mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-08 07:09:20 +02:00
Fix path
This commit is contained in:
parent
bd0570ac30
commit
449fc2c1cf
@ -374,7 +374,7 @@ class Settings implements ArrayAccess
|
|||||||
{
|
{
|
||||||
if (!isset($this->plugins[$pluginName])) {
|
if (!isset($this->plugins[$pluginName])) {
|
||||||
if ($pluginName === 'core') {
|
if ($pluginName === 'core') {
|
||||||
$file = SYSTEM . 'settings.php';
|
$settingsFilePath = SYSTEM . 'settings.php';
|
||||||
} else {
|
} else {
|
||||||
$pluginSettings = Plugins::getPluginSettings($pluginName);
|
$pluginSettings = Plugins::getPluginSettings($pluginName);
|
||||||
if (!$pluginSettings) {
|
if (!$pluginSettings) {
|
||||||
@ -385,11 +385,11 @@ class Settings implements ArrayAccess
|
|||||||
$settingsFilePath = BASE . $pluginSettings;
|
$settingsFilePath = BASE . $pluginSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!file_exists($file)) {
|
if (!file_exists($settingsFilePath)) {
|
||||||
throw new \RuntimeException('Failed to load settings file for plugin: ' . $pluginName);
|
throw new \RuntimeException('Failed to load settings file for plugin: ' . $pluginName);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmp = require $file;
|
$tmp = require $settingsFilePath;
|
||||||
$this->plugins[$pluginName] = $tmp['settings'];
|
$this->plugins[$pluginName] = $tmp['settings'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user