mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +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:
@@ -22,6 +22,9 @@ class Smarty_Internal_Resource_Stream {
|
||||
public $compiler_class = 'Smarty_Internal_SmartyTemplateCompiler';
|
||||
public $template_lexer_class = 'Smarty_Internal_Templatelexer';
|
||||
public $template_parser_class = 'Smarty_Internal_Templateparser';
|
||||
// properties
|
||||
public $usesCompiler = true;
|
||||
public $isEvaluated = true;
|
||||
|
||||
/**
|
||||
* Return flag if template source is existing
|
||||
@@ -80,28 +83,6 @@ class Smarty_Internal_Resource_Stream {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return flag that this resource uses the compiler
|
||||
*
|
||||
* @return boolean true
|
||||
*/
|
||||
public function usesCompiler()
|
||||
{
|
||||
// resource string is template, needs compiler
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return flag that this resource is evaluated
|
||||
*
|
||||
* @return boolean true
|
||||
*/
|
||||
public function isEvaluated()
|
||||
{
|
||||
// compiled template is evaluated instead of saved to disk
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get filepath to compiled template
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user