aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-07 16:36:55 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-07 16:36:55 +0100
commit2fd8a80878441cf59b1689b1765633694cb320b6 (patch)
tree32e329c64d66337bf7539bf502d062749c90aef7 /app/FreshRSS.php
parent4c128e05a4b1245525fd3eae7733e022ee805acd (diff)
Add first test for a generic ConfigurationSetter
We are blocked if a setter has to update several values. ConfigurationSetter will be updated. See https://github.com/FreshRSS/FreshRSS/issues/730
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 4900528d3..002a70af5 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -17,10 +17,15 @@ class FreshRSS extends Minz_FrontController {
}
private function initConfiguration() {
+ $configuration_setter = new FreshRSS_ConfigurationSetter();
$current_user = Minz_Session::param('currentUser', '_');
+
Minz_Configuration::register('user',
join_path(USERS_PATH, $current_user, 'config.php'),
- join_path(USERS_PATH, '_', 'config.default.php'));
+ join_path(USERS_PATH, '_', 'config.default.php'),
+ $configuration_setter);
+ $system_conf = Minz_Configuration::get('system');
+ $system_conf->_configurationSetter($configuration_setter);
}
private function initAuth() {