From 1d8a0277fee1c7b50ea810467fe443e903e314c7 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 6 Feb 2006 12:37:37 +0000 Subject: [PATCH] use # when title not set --- .../serendipity_plugin_recententries.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php index 8a1143b..3aaca78 100644 --- a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php +++ b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php @@ -20,7 +20,7 @@ class serendipity_plugin_recententries extends serendipity_plugin { $propbag->add('description', PLUGIN_RECENTENTRIES_BLAHBLAH); $propbag->add('stackable', true); $propbag->add('author', 'Christian Machmeier'); - $propbag->add('version', '1.4'); + $propbag->add('version', '1.5'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -167,6 +167,10 @@ class serendipity_plugin_recententries extends serendipity_plugin { array('timestamp' => $entry['timestamp']) ); + if (empty($entry['title'])) { + $entry['title'] = '#' . $entry['id']; + } + echo '' . $entry['title'] . '
' . '
' . htmlspecialchars(serendipity_strftime($dateformat, $entry['timestamp'])) -- 2.39.5