mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-17 10:33:04 -04:00
Load user extensions after all the global inits
See https://github.com/FreshRSS/FreshRSS/issues/252
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user