For the future: Always indicate source of where frontend_display is called. Thanks to Karotte.
This commit is contained in:
parent
d419461f16
commit
7f7afb21a2
@ -274,7 +274,8 @@ function serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace
|
||||
$comment['url'] = htmlspecialchars($comment['url'], ENT_QUOTES);
|
||||
}
|
||||
|
||||
serendipity_plugin_api::hook_event('frontend_display', $comment);
|
||||
$addData = array('from' => 'functions_entries:printComments');
|
||||
serendipity_plugin_api::hook_event('frontend_display', $comment, $addData);
|
||||
|
||||
if (isset($comment['no_email']) && $comment['no_email']) {
|
||||
$comment['email'] = false;
|
||||
|
@ -64,7 +64,8 @@ function serendipity_printEntries_rss(&$entries, $version, $comments = false, $f
|
||||
$ext = '';
|
||||
}
|
||||
|
||||
serendipity_plugin_api::hook_event('frontend_display', $entry);
|
||||
$addData = array('from' => 'functions_entries:printEntries_rss');
|
||||
serendipity_plugin_api::hook_event('frontend_display', $entry, $addData);
|
||||
// Do some relative -> absolute URI replacing magic. Replaces all HREF/SRC (<a>, <img>, ...) references to only the serendipitypath with the full baseURL URI
|
||||
// garvin: Could impose some problems. Closely watch this one.
|
||||
$entry['body'] = preg_replace('@(href|src)=("|\')(' . preg_quote($serendipity['serendipityHTTPPath']) . ')(.*)("|\')(.*)>@imsU', '\1=\2' . $serendipity['baseURL'] . '\4\2\6>', $entry['body']);
|
||||
|
@ -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']) . "')");
|
||||
}
|
||||
|
@ -196,7 +196,8 @@ class serendipity_plugin_comments extends serendipity_plugin
|
||||
$entry['comment'] = preg_replace('@((\[.*)[\n\r]+(.*\]))+@imsU', '\2\3', $entry['comment']);
|
||||
$entry['comment'] = preg_replace('@((\[.+\].*)[\r\n]+(.*\[/.+\]))+@imsU', '\2\3', $entry['comment']);
|
||||
}
|
||||
serendipity_plugin_api::hook_event('frontend_display', $entry);
|
||||
$addData = array('from' => 'serendipity_plugin_comments:generate_content');
|
||||
serendipity_plugin_api::hook_event('frontend_display', $entry, $addData);
|
||||
|
||||
printf(
|
||||
'<div class="plugin_comment_wrap">' . PLUGIN_COMMENTS_ABOUT . '</div>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user