From f22bc257b6dc2d226b0c4ffaf72533420b3bc235 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Fri, 12 Jan 2007 08:23:00 +0000 Subject: [PATCH] Fix a bug that prevented some entryproperty-plugins to execute on the entry detail pane. Thanks to dragonblast from the forums --- docs/NEWS | 3 +++ include/functions_entries.inc.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/docs/NEWS b/docs/NEWS index 3c02e4e0..d7ad7e52 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -20,6 +20,9 @@ Version 1.2 () Version 1.1.1 () ------------------------------------------------------------------------ + * Fixed a bug that prevented some entryproperty-plugins to execute + on the entry detail pane. (garvinhicking, Dragonblast) + * Fix a bug in sending the right login session cookies on Windows IIS servers. Major thanks to Shadowin from the forums! diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 5911b2e6..ee62d7d1 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -514,6 +514,10 @@ function &serendipity_fetchEntry($key, $val, $full = true, $fetchDrafts = 'false if (is_array($ret)) { $ret['categories'] =& serendipity_fetchEntryCategories($ret['id']); $ret['properties'] =& serendipity_fetchEntryProperties($ret['id']); + $stack = array(); + $stack[0] = &$ret; + $assoc_ids = array($ret['id'] => 0); + serendipity_plugin_api::hook_event('frontend_entryproperties', $stack, $assoc_ids); } return $ret;