From 6270967ec029786d3affa631eb613fdb70ce961c Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 7 Jul 2009 19:34:48 +1000 Subject: [PATCH] Improve processing in drawSubTitle() --- lib/TemplateRender.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/TemplateRender.php b/lib/TemplateRender.php index adc2e6e..9f214c0 100644 --- a/lib/TemplateRender.php +++ b/lib/TemplateRender.php @@ -775,11 +775,12 @@ class TemplateRender extends PageRender { public function drawSubTitle($subtitle=null) { if (DEBUGTMP) printf('%s
',__METHOD__); - $subtitle = ''; + if ($subtitle) + return parent::drawSubTitle($subtitle); switch ($this->getMode()) { case 'creation': - $subtitle .= sprintf('%s: %s   %s: %s', + $subtitle = sprintf('%s: %s   %s: %s', _('Server'),$this->getServer()->getName(), _('Container'),$this->container);