diff options
| author | 2014-10-24 15:17:07 +0200 | |
|---|---|---|
| committer | 2014-10-24 15:17:07 +0200 | |
| commit | 3e2d34c8671acae33568fdeb1398afad8296d9bf (patch) | |
| tree | 6a8fa1430115d12e78855362e093dae9667008f8 /app/FreshRSS.php | |
| parent | 5d7d01be296a23058026e0dc610b2e2077b3262c (diff) | |
| parent | 83d95ca4b894a84de467a97c7f413c1d04c43631 (diff) | |
Merge branch '634-refactor-with-context' into dev
Diffstat (limited to 'app/FreshRSS.php')
| -rw-r--r-- | app/FreshRSS.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php index 752b14e31..6114a5d1a 100644 --- a/app/FreshRSS.php +++ b/app/FreshRSS.php @@ -26,21 +26,15 @@ class FreshRSS extends Minz_FrontController { // Load context and configuration. FreshRSS_Context::init(); - $this->loadParamsView(); + // Init i18n. + Minz_Session::_param('language', FreshRSS_Context::$conf->language); + Minz_Translate::init(); + $this->loadStylesAndScripts(); $this->loadNotifications(); $this->loadExtensions(); } - private function loadParamsView() { - // TODO: outputs should be different actions. - $output = Minz_Request::param('output', ''); - if (($output === '') || ($output !== 'normal' && $output !== 'rss' && $output !== 'reader' && $output !== 'global')) { - $output = FreshRSS_Context::$conf->view_mode; - Minz_Request::_param('output', $output); - } - } - private function loadStylesAndScripts() { $theme = FreshRSS_Themes::load(FreshRSS_Context::$conf->theme); if ($theme) { |
