diff --git a/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php b/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php index 8a42b6534..fe6381bdc 100644 --- a/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php +++ b/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php @@ -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();