Skip to content
Snippets Groups Projects
Commit d2ea3363 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Support RSS feeds that don't have item links

darcs-hash:20080506210040-7ad00-b516a4fdfde5eab5b0e1773f834ef796af15a594.gz
parent 9476a253
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment