Commit 882ee9d8 authored by Tino Goratsch's avatar Tino Goratsch

minor improvement

parent 583925ae
......@@ -43,18 +43,19 @@ trait DisplayActionTrait
}
if (empty($this->getContent()) && $this->getContent() !== false) {
// Set the template automatically
if ($this->getTemplate() === '') {
$this->setTemplate($this->applyTemplateAutomatically());
}
$this->addCustomTemplateVarsBeforeOutput();
$this->getResponse()->setContent($this->getView()->fetchTemplate($this->getTemplate()));
$content = $this->getView()->fetchTemplate($this->getTemplate());
} else {
$this->getResponse()->setContent($this->getContent() === false ? '' : $this->getContent());
$content = $this->getContent() === false ? '' : $this->getContent();
}
$this->getResponse()->setContent($content);
return $this->getResponse();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment