]> git.mjollnir.org Git - s9y.git/commitdiff
fix iframe preview bug
authorgarvinhicking <garvinhicking>
Wed, 18 May 2005 14:56:23 +0000 (14:56 +0000)
committergarvinhicking <garvinhicking>
Wed, 18 May 2005 14:56:23 +0000 (14:56 +0000)
docs/NEWS
include/functions_entries.inc.php

index 21dce1351af5f556efe6821d53ca554245b3e826..d2fda82cb54a6cfcc3656de53c07fe6a055a7016 100644 (file)
--- 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)
index ecd9e634019d4e9a2c708f1f3263c7033a5afd9d..9b99f9f4cfa981ba9b489c348f951f4333263197 100644 (file)
@@ -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');