From 14d84ea049c8489eaf411a10dd0d9e8ea1d14037 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 17 Mar 2003 09:59:00 +0000 Subject: [PATCH] if the section colour lookup fails, use the section name as bgcolor for debugging purposes --- presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc b/presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc index d611838..42716a7 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc @@ -10,6 +10,7 @@ function renderHeading($sHeading, $sSectionName = "") { $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); } $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); + $sColor = $sColor == "" ? $sSectionName : $sColor; $sToRender .= "$sHeading\n"; $sToRender .= "\n"; $sToRender .= "\n"; -- libgit2 0.21.4