aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-24 15:17:07 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-24 15:17:07 +0200
commit3e2d34c8671acae33568fdeb1398afad8296d9bf (patch)
tree6a8fa1430115d12e78855362e093dae9667008f8 /app/FreshRSS.php
parent5d7d01be296a23058026e0dc610b2e2077b3262c (diff)
parent83d95ca4b894a84de467a97c7f413c1d04c43631 (diff)
Merge branch '634-refactor-with-context' into dev
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php14
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) {