Add a small prefilter on plpage to avoid notices when using {if $machin}
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 27 Jan 2009 21:20:30 +0000 (22:20 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 27 Jan 2009 21:20:30 +0000 (22:20 +0100)
commitb6ec30c586ec14541f59ab10e20fdffe6423c509
tree3af5cb5cbd227bd9685abfa66ab95e0a25e84ceb
parent7b2bd26189b7420bc84fe6d1c5197ba91a8c9866
Add a small prefilter on plpage to avoid notices when using {if $machin}

Just write {if t($machin)} to avoid the notice.

WARN: only works with pattern {if t(...)}, don't try {if t(...) || t(...)}
(or improve the regexp :).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plpage.php
plugins/compiler.javascript.php
templates/plpage.content.tpl
templates/plpage.header.tpl