summaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-07 15:45:34 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-07 15:45:34 +0100
commit2232d1e02a4bc9dbaa99cdbd22efad116ec01403 (patch)
treede48aad63a431327e200c2720346f29feaf9853b /app/FreshRSS.php
parent198b154064a12cfbeefd494afaa69378e77ffce9 (diff)
Load user extensions after all the global inits
See https://github.com/FreshRSS/FreshRSS/issues/252
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index b91dfcc46..88fe60850 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -29,18 +29,18 @@ class FreshRSS extends Minz_FrontController {
// Load context and configuration.
FreshRSS_Context::init();
- // Enable extensions for the current (logged) user.
- if (FreshRSS_Auth::hasAccess()) {
- $ext_list = FreshRSS_Context::$conf->extensions_enabled;
- Minz_ExtensionManager::enable_by_list($ext_list);
- }
-
// Init i18n.
Minz_Session::_param('language', FreshRSS_Context::$conf->language);
Minz_Translate::init();
$this->loadStylesAndScripts();
$this->loadNotifications();
+
+ // Enable extensions for the current (logged) user.
+ if (FreshRSS_Auth::hasAccess()) {
+ $ext_list = FreshRSS_Context::$conf->extensions_enabled;
+ Minz_ExtensionManager::enable_by_list($ext_list);
+ }
}
private function loadStylesAndScripts() {