summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-05-06 23:00:40 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-05-06 23:00:40 +0200
commitd2ea3363acdd760155ad4e66aa18eb6147902290 (patch)
treeebef029d33de199853ce657f72294c2fff991177 /inc
parent9476a253b9cef65ab9f56f3c4938cde99d9cf11b (diff)
downloadrpg-d2ea3363acdd760155ad4e66aa18eb6147902290.tar.gz
rpg-d2ea3363acdd760155ad4e66aa18eb6147902290.tar.bz2
Support RSS feeds that don't have item links
darcs-hash:20080506210040-7ad00-b516a4fdfde5eab5b0e1773f834ef796af15a594.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/parser/xhtml.php10
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){