Internal: enable/disable data localization

SVN:trunk[4289]
This commit is contained in:
Romain Quetiez
2016-07-05 14:44:08 +00:00
parent c209b75f6b
commit 12c64bd6e5

View File

@@ -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') );