Improve processing in drawSubTitle()
This commit is contained in:
parent
d501393d49
commit
6270967ec0
@ -775,11 +775,12 @@ class TemplateRender extends PageRender {
|
|||||||
public function drawSubTitle($subtitle=null) {
|
public function drawSubTitle($subtitle=null) {
|
||||||
if (DEBUGTMP) printf('<font size=-2>%s</font><br />',__METHOD__);
|
if (DEBUGTMP) printf('<font size=-2>%s</font><br />',__METHOD__);
|
||||||
|
|
||||||
$subtitle = '';
|
if ($subtitle)
|
||||||
|
return parent::drawSubTitle($subtitle);
|
||||||
|
|
||||||
switch ($this->getMode()) {
|
switch ($this->getMode()) {
|
||||||
case 'creation':
|
case 'creation':
|
||||||
$subtitle .= sprintf('%s: <b>%s</b> %s: <b>%s</b>',
|
$subtitle = sprintf('%s: <b>%s</b> %s: <b>%s</b>',
|
||||||
_('Server'),$this->getServer()->getName(),
|
_('Server'),$this->getServer()->getName(),
|
||||||
_('Container'),$this->container);
|
_('Container'),$this->container);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user