Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11824
Modified Files:
serendipity_sidebar_items.php
Log Message:
This will fix it. If there is no title set, we'll just print nugget - Some people might want a nugget without a title, so we can't force one upen them
Index: serendipity_sidebar_items.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_sidebar_items.php,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- serendipity_sidebar_items.php 15 Jun 2004 20:35:02 -0000 1.61
+++ serendipity_sidebar_items.php 15 Jun 2004 20:38:45 -0000 1.62
@@ -515,7 +515,11 @@
function generate_content(&$title)
{
- $title = $this->get_config('title',$title);
+ $title = $this->get_config('title', $title);
+ // In case we have a nugget without a title
+ if ( empty($title) ) {
+ $title = HTML_NUGGET;
+ }
if ($this->get_config('markup', 'true') == 'true') {
$entry = array('html_nugget' => $this->get_config('content'));
serendipity_plugin_api::hook_event('frontend_display', $entry);
|