From 7bf8dae989c062c6648a42d5b2dfb5f9c4a63827 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 28 May 2003 11:19:06 +0000 Subject: [PATCH] added optional sectionName to renderHeading --- presentation/Html.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"; -- libgit2 0.21.4
$sHeading