Improve processing in drawSubTitle()

This commit is contained in:
Deon George 2009-07-07 19:34:48 +10:00
parent d501393d49
commit 6270967ec0

View File

@ -775,11 +775,12 @@ class TemplateRender extends PageRender {
public function drawSubTitle($subtitle=null) {
if (DEBUGTMP) printf('<font size=-2>%s</font><br />',__METHOD__);
$subtitle = '';
if ($subtitle)
return parent::drawSubTitle($subtitle);
switch ($this->getMode()) {
case 'creation':
$subtitle .= sprintf('%s: <b>%s</b>&nbsp;&nbsp;&nbsp;%s: <b>%s</b>',
$subtitle = sprintf('%s: <b>%s</b>&nbsp;&nbsp;&nbsp;%s: <b>%s</b>',
_('Server'),$this->getServer()->getName(),
_('Container'),$this->container);