mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-28 18:02:07 +02:00
--- this is a major update with a couple of internal changes ---
- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
- fix on registered plugins with different type but same name
- rewrite of plugin handling (optimized execution speed)
- closed a security hole regarding PHP code injection into cache files
- fixed bug in clear cache handling
- Renamed a couple of internal classes
- code cleanup for merging compiled templates
- couple of runtime optimizations (still not all done)
This commit is contained in:
@@ -21,6 +21,9 @@ class Smarty_Internal_Resource_PHP {
|
||||
$this->smarty = $smarty;
|
||||
ini_set('short_open_tag', '1');
|
||||
}
|
||||
// properties
|
||||
public $usesCompiler = false;
|
||||
public $isEvaluated = false;
|
||||
|
||||
/**
|
||||
* Return flag if template source is existing
|
||||
@@ -80,27 +83,6 @@ class Smarty_Internal_Resource_PHP {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return flag that this resource not use the compiler
|
||||
*
|
||||
* @return boolean false
|
||||
*/
|
||||
public function usesCompiler()
|
||||
{
|
||||
// does not use compiler, template is PHP
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return flag that this is not evaluated
|
||||
*
|
||||
* @return boolean false
|
||||
*/
|
||||
public function isEvaluated()
|
||||
{
|
||||
// does not use compiler, must be false
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get filepath to compiled template
|
||||
|
||||
Reference in New Issue
Block a user