Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [09-2005 Date Index] [Date Next] || [Thread Prev] [09-2005 Thread Index] [Thread Next]

[dokuwiki] Re: hsc() undefined in RSS feed?

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 4 Sep 2005 00:01:59 +0200
On Sat, 03 Sep 2005 16:00:56 -0500 (CDT)
"Joe Lapp" <joe.lapp@xxxxxxxxx> wrote:

> Hey DokuWiki gurus,
> 
> I have several syntax plugins that call hsc() to escape HTML special
> chars.  The calls to hsc() work just fine when generating the pages,
> but when I go to retrieve the RSS feed, I periodically get errors such
> as:
> 
> "httpd: PHP Fatal error:  Call to undefined function:  hsc() in
> /.../spiders/lib/plugins/span_shorthand/syntax.php on line 80"
> 
> .. and of course, no feed.
> 
> Am I doing something wrong in my plugins?  Or is hsc() really
> off-limits in plugins?  Thanks!

hsc() is just a shortcut for htmlspecialchars() and is defined in
template.php - this file isn't included in the feed context which causes
the error. Just replace your hsc() calls with the longer form.

Andi




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.