mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Fixed Admin creating empty user/config/info.yaml file (the file can be safely removed, it is not in use)
This commit is contained in:
@@ -1067,6 +1067,9 @@ class AdminPlugin extends Plugin
|
||||
// Double check we have system.yaml, site.yaml etc
|
||||
$config_path = $this->grav['locator']->findResource('user://config');
|
||||
foreach ($this->admin::configurations() as $config_file) {
|
||||
if ($config_file === 'info') {
|
||||
continue;
|
||||
}
|
||||
$config_file = "{$config_path}/{$config_file}.yaml";
|
||||
if (!file_exists($config_file)) {
|
||||
touch($config_file);
|
||||
|
||||
Reference in New Issue
Block a user