fix entries-preview
This commit is contained in:
parent
2af76d2e69
commit
c7162adf31
@ -1234,9 +1234,9 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
|
|||||||
unset($entries, $dategroup);
|
unset($entries, $dategroup);
|
||||||
|
|
||||||
if (isset($serendipity['short_archives']) && $serendipity['short_archives']) {
|
if (isset($serendipity['short_archives']) && $serendipity['short_archives']) {
|
||||||
serendipity_smarty_fetch($smarty_block, 'entries_summary.tpl', true);
|
return serendipity_smarty_fetch($smarty_block, 'entries_summary.tpl', true);
|
||||||
} elseif ($smarty_fetch == true) {
|
} elseif ($smarty_fetch == true) {
|
||||||
serendipity_smarty_fetch($smarty_block, 'entries.tpl', true);
|
return serendipity_smarty_fetch($smarty_block, 'entries.tpl', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end function serendipity_printEntries
|
} // end function serendipity_printEntries
|
||||||
|
@ -151,7 +151,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr
|
|||||||
$serendipity['smarty']->assign('admin_view', 'entryform');
|
$serendipity['smarty']->assign('admin_view', 'entryform');
|
||||||
serendipity_plugin_api::hook_event('backend_entryform_smarty', $template_vars);
|
serendipity_plugin_api::hook_event('backend_entryform_smarty', $template_vars);
|
||||||
$serendipity['smarty']->assignByRef('entry_vars', $template_vars);
|
$serendipity['smarty']->assignByRef('entry_vars', $template_vars);
|
||||||
$serendipity['smarty']->display($template_vars['entry_template']);
|
return serendipity_smarty_show($template_vars['entry_template']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
|
function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user