From: garvinhicking Date: Wed, 18 May 2005 14:56:23 +0000 (+0000) Subject: fix iframe preview bug X-Git-Tag: 0.9~457 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=131c6a5db3539f5c3a468e84e2fd8d0b9fb14a74;p=s9y.git fix iframe preview bug --- 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');