Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv15694
Modified Files:
serendipity_admin_entries.inc.php
Log Message:
Show the username in the preview
Index: serendipity_admin_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_entries.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- serendipity_admin_entries.inc.php 30 Aug 2003 17:00:29 -0000 1.9
+++ serendipity_admin_entries.inc.php 31 Aug 2003 17:20:57 -0000 1.10
@@ -151,8 +151,10 @@
else {
if (!is_numeric($entry['timestamp'])) $entry['timestamp'] = time();
if (!$entry['trackbacks']) $entry['trackbacks'] = 0;
- if (!$entry['comments']) $entry['comments'] = 0;
- echo "<h3>".PREVIEW."</h3>";
+ if (!$entry['comments']) $entry['comments'] = 0;
+ if (!$entry['username']) $entry['username'] = $serendipity['serendipityUser'];
+
+ echo "<strong>". PREVIEW ."</strong>";
echo '<div style="border:1px solid #000000; padding: 15px;">';
serendipity_printEntries(array($entry));
echo '</div>';
|