Merge pull request #3121 from Icinga/fix/body-fails-with-custom-postdispatch-3120

body.phtml: provide a fallback in case no...
This commit is contained in:
lippserd 2017-11-21 14:08:05 +01:00 committed by GitHub
commit a6cebf9384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,11 @@ if ($this->layout()->autorefreshInterval) {
$refresh = ' data-icinga-refresh="' . $this->layout()->autorefreshInterval . '"'; $refresh = ' data-icinga-refresh="' . $this->layout()->autorefreshInterval . '"';
} }
$inlineLayoutScript = $this->layout()->inlineLayout . '.phtml'; if ($this->layout()->inlineLayout) {
$inlineLayoutScript = $this->layout()->inlineLayout . '.phtml';
} else {
$inlineLayoutScript = 'inline.phtml';
}
?> ?>
<div id="header"> <div id="header">