1
0

For the future: Always indicate source of where frontend_display is called. Thanks to Karotte.

This commit is contained in:
Garvin Hicking
2007-07-08 20:07:41 +00:00
parent d419461f16
commit 7f7afb21a2
4 changed files with 8 additions and 4 deletions

View File

@@ -134,7 +134,8 @@ class serendipity_event_entryproperties extends serendipity_event
global $serendipity;
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}entryproperties WHERE entryid = " . (int)$entry['id'] . " AND property LIKE 'ep_cache_%'");
serendipity_plugin_api::hook_event('frontend_display', $entry);
$addData = array('from' => 'serendipity_event_entryproperties:updateCache');
serendipity_plugin_api::hook_event('frontend_display', $entry, $addData);
serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}entryproperties (entryid, property, value) VALUES (" . (int)$entry['id'] . ", 'ep_cache_body', '" . serendipity_db_escape_string($entry['body']) . "')");
serendipity_db_query("INSERT INTO {$serendipity['dbPrefix']}entryproperties (entryid, property, value) VALUES (" . (int)$entry['id'] . ", 'ep_cache_extended', '" . serendipity_db_escape_string($entry['extended']) . "')");
}