N°2060 - Regression: Fix missing PORTAL_ID constant

This commit is contained in:
Molkobain
2020-01-17 17:33:52 +01:00
parent d16c0ffef9
commit e8aaec5789

View File

@@ -147,6 +147,13 @@ if (empty($_ENV['PORTAL_ID']))
exit;
}
// Make sure that the PORTAL_ID constant is also defined
// Note: This is widely used in extensions, snippets and all
if (!defined('PORTAL_ID'))
{
define('PORTAL_ID', $_ENV['PORTAL_ID']);
}
// Env. vars to be used in templates and others
$_ENV['COMBODO_CURRENT_ENVIRONMENT'] = utils::GetCurrentEnvironment();
$_ENV['COMBODO_ABSOLUTE_URL'] = utils::GetAbsoluteUrlAppRoot();