Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30728/include
Modified Files:
functions_entries.inc.php
Log Message:
Pass :per_XXX eventData by reference, as done on all other occasions.
Thanks Rasmus for pointing this out.
Index: functions_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_entries.inc.php,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- functions_entries.inc.php 9 Feb 2005 08:41:03 -0000 1.55
+++ functions_entries.inc.php 9 Feb 2005 15:26:04 -0000 1.56
@@ -628,9 +628,9 @@
$entry['is_entry_owner'] = true;
}
- $eventData = array_merge(array('display_dat' => ''), $entry);
- serendipity_plugin_api::hook_event('frontend_display:html:per_entry', $eventData);
- $entry['plugin_display_dat'] = $eventData['display_dat'];
+ $entry['display_dat'] = '';
+ serendipity_plugin_api::hook_event('frontend_display:html:per_entry', $entry);
+ $entry['plugin_display_dat'] =& $entry['display_dat'];
if ($preview) {
ob_start();
@@ -790,9 +790,9 @@
<pubDate><?php echo date('r', serendipity_serverOffsetHour($entry['timestamp'])); ?></pubDate>
<guid isPermaLink="false"><?php echo $guid; ?></guid>
<?php
- $eventData = array_merge(array('display_dat' => ''), $entry);
- serendipity_plugin_api::hook_event('frontend_display:rss-2.0:per_entry', $eventData);
- echo $eventData['display_dat'];
+ $entry['display_dat'] = '';
+ serendipity_plugin_api::hook_event('frontend_display:rss-2.0:per_entry', $entry);
+ echo $entry['display_dat'];
?>
</item>
<?php
@@ -823,9 +823,9 @@
?>
</description>
<?php
- $eventData = array_merge(array('display_dat' => ''), $entry);
- serendipity_plugin_api::hook_event('frontend_display:rss-1.0:per_entry', $eventData);
- echo $eventData['display_dat'];
+ $entry['display_dat'] = '';
+ serendipity_plugin_api::hook_event('frontend_display:rss-1.0:per_entry', $entry);
+ echo $entry['display_dat'];
?>
<dc:publisher><?php echo serendipity_utf8_encode(htmlspecialchars($serendipity['blogTitle'])); ?></dc:publisher>
<dc:creator><?php echo serendipity_utf8_encode(htmlspecialchars($entry['email'])) . ' (' . serendipity_utf8_encode(htmlspecialchars($entry['username'])) . ')'; ?></dc:creator>
|