From 30019510759c06c5b1884ce4aa353ac50f26a180 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 11 Jul 2018 22:58:37 -0400 Subject: [PATCH] Move the addon-specific config in config/addon.ini.php - Add sample addon.ini.php file - Add config/addon.ini.php file to git ignore --- .gitignore | 1 + config/addon-sample.ini.php | 10 ++++++++++ src/App.php | 6 +++--- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 config/addon-sample.ini.php diff --git a/.gitignore b/.gitignore index c1eb430b4b..114bb5dbb9 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ robots.txt #ignore local config /config/local.ini.php +/config/addon.ini.php #ignore documentation, it should be newly built /doc/html diff --git a/config/addon-sample.ini.php b/config/addon-sample.ini.php new file mode 100644 index 0000000000..7d8054cd2a --- /dev/null +++ b/config/addon-sample.ini.php @@ -0,0 +1,10 @@ +basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php')) { - $this->loadConfigFile($this->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php'); + // Load the local addon config file to overwritten default addon config values + if (file_exists($this->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'addon.ini.php')) { + $this->loadConfigFile($this->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'addon.ini.php'); } } -- 2.39.5