From 7b59df216b61d8f36b702f666603c301e51018cf Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 24 Nov 2023 16:40:58 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07005=20-=20Fix=20portal=20stylesheets=20?= =?UTF-8?q?not=20being=20re-compiled=20when=20outdated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stylesheets should remain as a relative path in the portal configuration, only when consumed by the TWIG should they become URLs Note that if not absolute, URLs will be append to ITOP/pages/ --- .../portal/config/legacy_silex_compat_layer.php | 4 ++-- .../2.x/itop-portal-base/portal/templates/layout.html.twig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datamodels/2.x/itop-portal-base/portal/config/legacy_silex_compat_layer.php b/datamodels/2.x/itop-portal-base/portal/config/legacy_silex_compat_layer.php index a92e34260..cbb4c5a39 100644 --- a/datamodels/2.x/itop-portal-base/portal/config/legacy_silex_compat_layer.php +++ b/datamodels/2.x/itop-portal-base/portal/config/legacy_silex_compat_layer.php @@ -64,7 +64,7 @@ foreach ($aPortalConf['properties']['themes'] as $sKey => $value) { if (!is_array($value)) { - $aPortalConf['properties']['themes'][$sKey] = $_ENV['COMBODO_ABSOLUTE_URL'].utils::GetCSSFromSASS('env-'.utils::GetCurrentEnvironment().'/'.$value, + $aPortalConf['properties']['themes'][$sKey] = utils::GetCSSFromSASS('env-'.utils::GetCurrentEnvironment().'/'.$value, $aImportPaths); } else @@ -72,7 +72,7 @@ foreach ($aPortalConf['properties']['themes'] as $sKey => $value) $aValues = array(); foreach ($value as $sSubValue) { - $aValues[] = $_ENV['COMBODO_ABSOLUTE_URL'].utils::GetCSSFromSASS('env-'.utils::GetCurrentEnvironment().'/'.$sSubValue, + $aValues[] = utils::GetCSSFromSASS('env-'.utils::GetCurrentEnvironment().'/'.$sSubValue, $aImportPaths); } $aPortalConf['properties']['themes'][$sKey] = $aValues; diff --git a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig index 681a1eaf0..e58e36a8e 100644 --- a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig +++ b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig @@ -51,9 +51,9 @@ {# - Bootstrap theme #} - + {# - Portal adjustments for BS theme #} - + {# UI Extensions CSS, in an undefined order #} {% if app['ui_extensions_helper'].css_files is defined %} {% for css_file in app['ui_extensions_helper'].css_files %}