From 2286b3810d81bebf2cec5bc2976f05bc95f1ea87 Mon Sep 17 00:00:00 2001 From: Michael Joseph 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