Merge pull request #731 from anaqreon/dev

When template "none" is used in a webpage layout, then the contents o…
This commit is contained in:
git-marijus 2017-04-26 14:18:42 +02:00 committed by GitHub
commit e8ddee284c
2 changed files with 10 additions and 0 deletions

View File

@ -1541,6 +1541,15 @@ function prepare_page($item) {
// the template will get passed an unobscured title.
$body = prepare_body($item, true);
if(App::$page['template'] == 'none') {
$tpl = 'page_display_empty.tpl';
return replace_macros(get_markup_template($tpl), array(
'$body' => $body['html']
));
}
$tpl = get_pconfig($item['uid'], 'system', 'pagetemplate');
if (! $tpl)
$tpl = 'page_display.tpl';

View File

@ -0,0 +1 @@
{{$body}}