N°2060: Add portal's ContextTag lost in Symfony migration

This commit is contained in:
Stephen Abello
2019-08-02 10:58:52 +02:00
parent e172bd13df
commit 305b236f41

View File

@@ -148,6 +148,10 @@ if (empty($_ENV['PORTAL_ID']))
exit;
}
// Stacking context tag so it knows we are in the portal
$oContext = new ContextTag('GUI:Portal');
$oContext2 = new ContextTag('Portal:' . $_ENV['PORTAL_ID']);
// Env. vars to be used in templates and others
$_ENV['COMBODO_CURRENT_ENVIRONMENT'] = utils::GetCurrentEnvironment();
$_ENV['COMBODO_ABSOLUTE_URL'] = utils::GetAbsoluteUrlAppRoot();