]> git.mjollnir.org Git - s9y.git/commitdiff
For the future: Always indicate source of where frontend_display is called. Thanks...
authorgarvinhicking <garvinhicking>
Sun, 8 Jul 2007 20:07:41 +0000 (20:07 +0000)
committergarvinhicking <garvinhicking>
Sun, 8 Jul 2007 20:07:41 +0000 (20:07 +0000)
include/functions_comments.inc.php
include/functions_rss.inc.php
plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php
plugins/serendipity_plugin_comments/serendipity_plugin_comments.php

index a7a15ab65e1c145e6faf6b5036f5b1887f753719..471536b4a85fe0b03edfcd96ffe64b29d728e425 100644 (file)
@@ -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;
index c5337a9bb7748a71269bcfa56f756fd34d1dc7df..fdbcc843b9ddd68fc53050f9aaffc5338cfabffa 100644 (file)
@@ -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']);
index 40cebae47cec3897102f600794383f1f2bf9a459..832d26ca8f269a8b614a39e40c8c09d687ca2794 100644 (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']) . "')");
     }
index bde5c5dbeeb2d1d0e56c4817712170bb0c009d19..e7da85bcff2717693a3db0ff265efdd163ce8dcb 100644 (file)
@@ -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>',