diff --git a/presentation/Html.inc b/presentation/Html.inc index 423fae2..9695a39 100644 --- a/presentation/Html.inc +++ b/presentation/Html.inc @@ -11,9 +11,11 @@ * @package presentation */ -function renderHeading($sHeading) { +function renderHeading($sHeading, $sSectionName = "") { global $default; - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); + if (strlen($sSectionName) == 0) { + $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); + } $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); $sToRender = "\n"; $sToRender .= "\n";
$sHeading