Commit 2286b3810d81bebf2cec5bc2976f05bc95f1ea87
1 parent
17ea544e
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
Showing
1 changed file
with
1 additions
and
0 deletions
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"; | ... | ... |