Commit 14d84ea049c8489eaf411a10dd0d9e8ea1d14037

Authored by michael
1 parent eb3a80ef

if the section colour lookup fails, use the section name as bgcolor for debugging purposes


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1596 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc
... ... @@ -10,6 +10,7 @@ function renderHeading($sHeading, $sSectionName = "") {
10 10 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
11 11 }
12 12 $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
  13 + $sColor = $sColor == "" ? $sSectionName : $sColor;
13 14 $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n";
14 15 $sToRender .= "<tr/>\n";
15 16 $sToRender .= "<tr/>\n";
... ...