Ammendment for SF Feature #2837687, dont render the only template if it is invalid
This commit is contained in:
parent
ba553353b0
commit
5706ad1b4a
@ -310,7 +310,12 @@ class PageRender extends Visitor {
|
|||||||
|
|
||||||
$template = $templates->getTemplates($this->getMode(),$this->getModeContainer(),true);
|
$template = $templates->getTemplates($this->getMode(),$this->getModeContainer(),true);
|
||||||
$template = array_shift($template);
|
$template = array_shift($template);
|
||||||
return $template->getID();
|
|
||||||
|
# Dont render the only available template if it is invalid.
|
||||||
|
if (! $template->isInvalid())
|
||||||
|
return $template->getID();
|
||||||
|
else
|
||||||
|
$this->drawTemplateChoice();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (DEBUGTMP) printf('<font size=-2>%s:<u>%s</u></font><br />',__METHOD__,'SELECT a template to use.');
|
if (DEBUGTMP) printf('<font size=-2>%s:<u>%s</u></font><br />',__METHOD__,'SELECT a template to use.');
|
||||||
|
Loading…
Reference in New Issue
Block a user