[PHPTAL] Inconsistency of PHPTAL_FORCE_REPARSE constant ?
smoking_birds_on_moon at earthling.net
smoking_birds_on_moon at earthling.net
Thu Mar 29 15:14:07 CEST 2007
Hello,
I'm not sure if this is an inconsistency, but if I use
define("PHPTAL_FORCE_REPARSE",1);
in my code, every time I request a page it gets parsed.
In a natural way I used this to disable this behaviour:
define("PHPTAL_FORCE_REPARSE",0);
but the page was parsed again, because in PHPTAL.php the condition
for reparsing a template is:
if (defined('PHPTAL_FORCE_REPARSE') ...
In my case this is true, because PHPTAL_FORCE_REPARSE is defined with
the value '0'.
I think it would be clearer to ask for a defined PHPTAL_FORCE_REPARSE and
a value unequal FALSE.
Best regards and thanks for the code,
martin
More information about the PHPTAL
mailing list