From 131c6a5db3539f5c3a468e84e2fd8d0b9fb14a74 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Wed, 18 May 2005 14:56:23 +0000 Subject: [PATCH] fix iframe preview bug --- docs/NEWS | 8 +++++++- include/functions_entries.inc.php | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index 21dce13..d2fda82 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -35,7 +35,13 @@ Version 0.9 () * "Comments" Sidebar plugin can now have a custom title (garvinhicking) -Version 0.8.1 () +Version 0.8.2 () +------------------------------------------------------------------------ + + * Fix missing authorname when previewing entry. Thanks to winkiller, + aquatic, thomas, wurstprinz and hansi for fixing this! + +Version 0.8.1 (May 17th, 2005) ------------------------------------------------------------------------ * Fix missing PDF thumbnail creation (imagemagick only) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index ecd9e63..9b99f9f 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -600,6 +600,11 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false) { foreach($dategroup as $properties) { foreach($properties['entries'] as $x => $_entry) { $entry = &$properties['entries'][$x]; // PHP4 Compat + if ($preview) { + $entry['author'] = $entry['realname']; + $entry['authorid'] = $serendipity['authorid']; + } + serendipity_plugin_api::hook_event('frontend_display', $entry); $entry['link'] = serendipity_archiveURL($entry['id'], $entry['title'], 'serendipityHTTPPath'); -- 2.39.5