From: garvinhicking Date: Fri, 12 Jan 2007 08:23:09 +0000 (+0000) Subject: Fix a bug that prevented some entryproperty-plugins to execute on the entry detail... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=da8f6cb6f1518bebc5a43a0ea7a320679e9c7215;p=s9y.git Fix a bug that prevented some entryproperty-plugins to execute on the entry detail pane. Thanks to dragonblast from the forums --- diff --git a/docs/NEWS b/docs/NEWS index b44dabb..6b56a46 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ 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 5911b2e..ee62d7d 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;