$entry['authorid'] = $serendipity['authorid'];
}
- serendipity_plugin_api::hook_event('frontend_display', $entry);
+ $addData = array('from' => 'functions_entries:printEntries');
+ if ($entry['is_cached']) {
+ $addData['no_scramble'] = true;
+ }
+ serendipity_plugin_api::hook_event('frontend_display', $entry, $addData);
if ($preview) {
$entry['author'] = $entry['realname'];
}
if (!serendipity_db_bool($entry['isdraft'])) {
- serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true));
+ serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true, 'from' => 'functions_entries:updertEntry'));
serendipity_handle_references($entry['id'], $serendipity['blogTitle'], $entry['title'], $entry['body'] . $entry['extended'], $newEntry);
}
if ($is_cache) {
// Previous calls to frontend_display used the "no_scramble" atteribute to not tinker with the data.
// We now need to call those plugins that have not yet operated before.
- serendipity_plugin_api::hook_event('frontend_display_cache', $eventData);
+ $to_addData = array('from' => 'entryproperties:' . $event);
+ serendipity_plugin_api::hook_event('frontend_display_cache', $eventData, $to_addData);
$serendipity['POST']['properties']['cache_body'] = $eventData['body'];
$serendipity['POST']['properties']['cache_extended'] = $eventData['extended'];
}