Menu

#4 Using different template config does not force recompile

open
7
2005-02-10
2005-02-10
C. Studer
No

Step by step:

1. create a template file "foo.html" containing raw PHP
code.
2. $tpl = new mwCTemplate($fw,"foo.html",true,false);
$tpl->compile();
3. $tpl = new
mwCTemplate($fw,"foo.html",true,array("disallow_rawphp"=>false));
$tpl->compile();

The compile at step 3 will *not* replace the compile
template of step 2, which may be fatal in some cases.

The easiest bug fix will be to include the config-array
into the hash of the template. May be slow, so I'll
look if there's another solution...

Discussion


Log in to post a comment.