mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02:00
forced_recompile "seems" to work now if set true ...
git-svn-id: file:///svn/phpbb/trunk@4223 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3d02dc5fc2
commit
1b129a9034
@ -64,7 +64,7 @@ class Template
|
|||||||
var $force_recompile;
|
var $force_recompile;
|
||||||
|
|
||||||
|
|
||||||
function set_template($template = '', $static_lang = false, $force_recompile = false)
|
function set_template($template = '', $static_lang = false, $force_recompile = true)
|
||||||
{
|
{
|
||||||
global $phpbb_root_path;
|
global $phpbb_root_path;
|
||||||
|
|
||||||
@ -248,8 +248,14 @@ class Template
|
|||||||
|
|
||||||
if ($include)
|
if ($include)
|
||||||
{
|
{
|
||||||
// eval($this->compiled_code[$handle]);
|
if (!$this->force_recompile)
|
||||||
include($filename);
|
{
|
||||||
|
include($filename);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eval(' ?>' . $this->compiled_code[$handle] . '<?php ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user