Procházet zdrojové kódy

Move back i18n init in FreshRSS.php

Marien Fressinaud před 11 roky
rodič
revize
eb60b82959
2 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 0
      app/FreshRSS.php
  2. 0 4
      app/Models/Context.php

+ 4 - 0
app/FreshRSS.php

@@ -26,6 +26,10 @@ class FreshRSS extends Minz_FrontController {
 		// Load context and configuration.
 		// Load context and configuration.
 		FreshRSS_Context::init();
 		FreshRSS_Context::init();
 
 
+		// Init i18n.
+		Minz_Session::_param('language', FreshRSS_Context::$conf->language);
+		Minz_Translate::init();
+
 		$this->loadStylesAndScripts();
 		$this->loadStylesAndScripts();
 		$this->loadNotifications();
 		$this->loadNotifications();
 		$this->loadExtensions();
 		$this->loadExtensions();

+ 0 - 4
app/Models/Context.php

@@ -42,10 +42,6 @@ class FreshRSS_Context {
 			die($e->getMessage());
 			die($e->getMessage());
 		}
 		}
 
 
-		// Init i18n.
-		Minz_Session::_param('language', self::$conf->language);
-		Minz_Translate::init();
-
 		$catDAO = new FreshRSS_CategoryDAO();
 		$catDAO = new FreshRSS_CategoryDAO();
 		$entryDAO = FreshRSS_Factory::createEntryDao();
 		$entryDAO = FreshRSS_Factory::createEntryDao();