diff options
-rw-r--r-- | inc/parser/xhtml.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 4476cbe3b..91b462089 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -762,8 +762,14 @@ class Doku_Renderer_xhtml extends Doku_Renderer { for ($x = $start; $x != $end; $x += $mod) { $item = $feed->get_item($x); $this->doc .= '<li><div class="li">'; - $this->externallink($item->get_permalink(), - $item->get_title()); + // support feeds without links + $lnkurl = $item->get_permalink(); + if($lnkurl){ + $this->externallink($item->get_permalink(), + $item->get_title()); + }else{ + $this->doc .= ' '.$item->get_title(); + } if($params['author']){ $author = $item->get_author(0); if($author){ |