14/05/2010

- bugfix compile new config files if compile_check and force_compile = false
- added variable static classes names to template syntax
This commit is contained in:
Uwe.Tews
2010-05-14 13:45:04 +00:00
parent 3197470ca5
commit a15c0f85d1
3 changed files with 738 additions and 751 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ class Smarty_Internal_Config {
public function mustCompile ()
{
return $this->mustCompile === null ?
$this->mustCompile = ($this->smarty->force_compile || $this->smarty->compile_check && $this->getCompiledTimestamp () < $this->getTimestamp ()):
$this->mustCompile = ($this->smarty->force_compile || $this->getCompiledTimestamp () === false || $this->smarty->compile_check && $this->getCompiledTimestamp () < $this->getTimestamp ()):
$this->mustCompile;
}
/**
@@ -243,7 +243,7 @@ class Smarty_Internal_Config {
if ($this->mustCompile()) {
$this->compileConfigSource();
}
include($this->getCompiledFilepath ());
include($this->getCompiledFilepath ());
// copy global config vars
foreach ($_config_vars['vars'] as $variable => $value) {
if ($this->smarty->config_overwrite || !isset($scope->config_vars[$variable])) {
File diff suppressed because it is too large Load Diff