|
From: barry <sla...@i1...> - 2001-11-10 05:34:12
|
in the edit_comment;comment;default template (in Bender) there is a line: [% IF !user.is_anon && user.karma > constants.goodkarma %] when I try to use template-tool to store and then compile this template, it breaks at that line: [root@slash templates]# template-tool -u user -s edit_comment\;comments\;default Preparing to insert edit_comment using filename edit_comment;comments;default updated template edit_comment;comments;default tpid 69 [root@slash templates]# template-tool -u user -c edit_comment\;comments\;default edit_comment;comments;default at /usr/local/sbin/template-tool line 278. Argument "" isn't numeric in numeric gt (>) at (eval 7) line 124. Argument "" isn't numeric in numeric gt (>) at (eval 7) line 124. It seems to think that it can't do the comparison because both user.karma and constants.goodkarma are strings. But almost immediately afterwards in that template is: [% IF constants.allow_anonymous && user.karma > -1 && !user.is_anon %] and that compiles OK. Why ? I notice the same code is in the template for Fry. So how did this get built in the first place? How do I get it built again, now tht I made a slight mod to the template? (for now I have just commented that part out, but obviously that is a short-term solution) Thanks for any insight! Barry |