Gossamer Forum
Quote Reply
Weird bug/issue
Hi,

Just came across a little bit of a weird issue with the <%category%> tag on home.html

Using a simple global:

recode_category_tag
Code:
sub {
my $in = $_[0];
$in =~ s/100\%/90\%/;
return $in;
}

..then calling with:

Code:
<%recode_category_tag($category)%>

..I just get an CODE(xxxxxx) text showing.

After some playing around, this worked:

Code:
<%set cattmp = $category%>
<%recode_category_tag($cattmp)%>

..but just wondering why this is the case? Surely <%category%> is just a basic HTML tag (with the list of categories) ???

Not a biggie - was just wondering why it didn't work as I was expecting Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!