mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
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:
@@ -1,3 +1,7 @@
|
|||||||
|
14/05/2010
|
||||||
|
- bugfix compile new config files if compile_check and force_compile = false
|
||||||
|
- added variable static classes names to template syntax
|
||||||
|
|
||||||
11/05/2010
|
11/05/2010
|
||||||
- bugfix make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally
|
- bugfix make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally
|
||||||
- reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag.
|
- reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag.
|
||||||
|
@@ -172,7 +172,7 @@ class Smarty_Internal_Config {
|
|||||||
public function mustCompile ()
|
public function mustCompile ()
|
||||||
{
|
{
|
||||||
return $this->mustCompile === null ?
|
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;
|
$this->mustCompile;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -243,7 +243,7 @@ class Smarty_Internal_Config {
|
|||||||
if ($this->mustCompile()) {
|
if ($this->mustCompile()) {
|
||||||
$this->compileConfigSource();
|
$this->compileConfigSource();
|
||||||
}
|
}
|
||||||
include($this->getCompiledFilepath ());
|
include($this->getCompiledFilepath ());
|
||||||
// copy global config vars
|
// copy global config vars
|
||||||
foreach ($_config_vars['vars'] as $variable => $value) {
|
foreach ($_config_vars['vars'] as $variable => $value) {
|
||||||
if ($this->smarty->config_overwrite || !isset($scope->config_vars[$variable])) {
|
if ($this->smarty->config_overwrite || !isset($scope->config_vars[$variable])) {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user