diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-06-18 19:29:04 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-06-18 19:29:04 +0200 |
commit | 45e147cc5cc1cc1c72e6277041198e36d5cfcce8 (patch) | |
tree | f417dc7b99db2e5eb8485517c3ea99edd1cbfa44 /inc/parser | |
parent | 542a5ea661c3f92924f20c0c3c28d7bc1fb469e9 (diff) | |
download | rpg-45e147cc5cc1cc1c72e6277041198e36d5cfcce8.tar.gz rpg-45e147cc5cc1cc1c72e6277041198e36d5cfcce8.tar.bz2 |
Verbose errors for failed feed fetching
When the allowdebug option is set, the error message generated by the feed parser
will be put in an HTML comment.
darcs-hash:20070618172904-7ad00-729b99d76df499890ded3f43b708196de9ff8cbe.gz
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/xhtml.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 3efb542de..c1a07d24f 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -818,6 +818,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->doc .= '<li><div class="li">'; $this->doc .= '<em>'.$lang['rssfailed'].'</em>'; $this->externallink($url); + if($conf['allowdebug']){ + $this->doc .= '<!--'.hsc($feed->error).'-->'; + } $this->doc .= '</div></li>'; } $this->doc .= '</ul>'; |