Set the 'view' variable to 'plugin' when event plugins take on a full entry page

This commit is contained in:
Garvin Hicking 2006-10-09 11:00:17 +00:00
parent 35542d1274
commit 7545df9d1a

View File

@ -871,7 +871,14 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
serendipity_plugin_api::hook_event('entry_display', $entries, $addData);
if (isset($entries['clean_page']) && $entries['clean_page'] === true) {
$serendipity['smarty']->assign('plugin_clean_page', true);
if ($serendipity['view'] == '404') {
$serendipity['view'] = 'plugin';
}
$serendipity['smarty']->assign(array(
'plugin_clean_page' => true,
'view' => $serendipity['view'])
);
serendipity_smarty_fetch($smarty_block, 'entries.tpl', true);
return; // no display of this item
}
@ -1127,7 +1134,7 @@ function serendipity_updertEntry($entry) {
if (isset($entry['properties'])) {
unset($entry['properties']);
}
if (!is_numeric($entry['timestamp'])) {
$entry['timestamp'] = time();
}