Quellcode durchsuchen

Internal: enable/disable data localization

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4289 a333f486-631f-4898-b8df-5754b55c2be0
romainq vor 9 Jahren
Ursprung
Commit
bb95dea357
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      datamodels/2.x/itop-portal-base/portal/web/index.php

+ 5 - 0
datamodels/2.x/itop-portal-base/portal/web/index.php

@@ -53,6 +53,11 @@ if (UserRights::GetContactId() == 0)
 $oContex = new ContextTag('GUI:Portal');
 $oContex2 = new ContextTag('Portal:' . PORTAL_MODULE_ID);
 
+if (!defined('DISABLE_DATA_LOCALIZER_PORTAL'))
+{
+	ApplicationContext::SetPluginProperty('QueryLocalizerPlugin', 'language_code', UserRights::GetUserLanguage());
+}
+
 // Checking if debug param is on
 $bDebug = (isset($_REQUEST['debug']) && ($_REQUEST['debug'] === 'true') );