aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-05 22:43:15 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-05 22:45:03 +0100
commit7cca47d1ab5838f5440b1a1e08fa4c0d43989664 (patch)
treeb51ae930a11afd4c9622c27c1926310f980d294e /app/FreshRSS.php
parent51a71ec4b9d62528054be8faee1576a8fd6d37f6 (diff)
Change name of user configuration var in Context
- FreshRSS_Context::$conf is replaced by FreshRSS_Context::$user_conf - Introduce FreshRSS_Context::$system_conf - Remove FreshRSS_Configuration object See https://github.com/FreshRSS/FreshRSS/issues/730
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 455f2fefd..b22bfdb4b 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -32,7 +32,7 @@ class FreshRSS extends Minz_FrontController {
FreshRSS_Context::init();
// Init i18n.
- Minz_Session::_param('language', FreshRSS_Context::$conf->language);
+ Minz_Session::_param('language', FreshRSS_Context::$user_conf->language);
Minz_Translate::init();
$this->loadStylesAndScripts();
@@ -41,7 +41,7 @@ class FreshRSS extends Minz_FrontController {
}
private function loadStylesAndScripts() {
- $theme = FreshRSS_Themes::load(FreshRSS_Context::$conf->theme);
+ $theme = FreshRSS_Themes::load(FreshRSS_Context::$user_conf->theme);
if ($theme) {
foreach($theme['files'] as $file) {
if ($file[0] === '_') {
@@ -62,8 +62,7 @@ class FreshRSS extends Minz_FrontController {
Minz_View::appendScript(Minz_Url::display('/scripts/shortcut.js?' . @filemtime(PUBLIC_PATH . '/scripts/shortcut.js')));
Minz_View::appendScript(Minz_Url::display('/scripts/main.js?' . @filemtime(PUBLIC_PATH . '/scripts/main.js')));
- $conf = Minz_Configuration::get('system');
- if ($conf->general['auth_type'] === 'persona') {
+ if (FreshRSS_Context::$system_conf->general['auth_type'] === 'persona') {
// TODO move it in a plugin
// Needed for login AND logout with Persona.
Minz_View::appendScript('https://login.persona.org/include.js');