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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates