mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-21 01:36:24 +01:00
feat: autoload settings.php
This commit is contained in:
@@ -560,8 +560,8 @@ class Settings implements \ArrayAccess
|
||||
$settingsFilePath = BASE . $settings[$pluginKeyName]['settingsFilename'];
|
||||
}
|
||||
|
||||
if (!file_exists($settingsFilePath)) {
|
||||
throw new \RuntimeException('Failed to load settings file for plugin: ' . $pluginKeyName);
|
||||
if (!is_file($settingsFilePath)) {
|
||||
throw new \RuntimeException('Failed to load settings file for plugin: ' . $pluginKeyName . ' (Tried: ' . $settingsFilePath . ')');
|
||||
}
|
||||
|
||||
$this->settingsFile[$pluginKeyName] = require $settingsFilePath;
|
||||
|
||||
Reference in New Issue
Block a user