summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_resource_file.php
diff options
context:
space:
mode:
authorUwe.Tews <uwe.tews@localhost>2009-12-27 15:06:49 +0000
committerUwe.Tews <uwe.tews@localhost>2009-12-27 15:06:49 +0000
commit44dd7830ddef97f8a87f5637d191d805c7a61f51 (patch)
tree3d9872233d250af86ef2e8fb9cde4b94a2b384cf /libs/sysplugins/smarty_internal_resource_file.php
parent5f02276a2a0b9237c7801e5541ddf90ae5e5ed4f (diff)
downloadsmarty-44dd7830ddef97f8a87f5637d191d805c7a61f51.tar.gz
smarty-44dd7830ddef97f8a87f5637d191d805c7a61f51.tar.bz2
smarty-44dd7830ddef97f8a87f5637d191d805c7a61f51.zip
--- 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)
Diffstat (limited to 'libs/sysplugins/smarty_internal_resource_file.php')
-rw-r--r--libs/sysplugins/smarty_internal_resource_file.php24
1 files changed, 3 insertions, 21 deletions
diff --git a/libs/sysplugins/smarty_internal_resource_file.php b/libs/sysplugins/smarty_internal_resource_file.php
index db876e5e..b0a5163c 100644
--- a/libs/sysplugins/smarty_internal_resource_file.php
+++ b/libs/sysplugins/smarty_internal_resource_file.php
@@ -21,6 +21,9 @@ class Smarty_Internal_Resource_File {
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 = false;
/**
* Return flag if template source is existing
@@ -83,27 +86,6 @@ class Smarty_Internal_Resource_File {
}
/**
- * Return flag that this resource uses the compiler
- *
- * @return boolean true
- */
- public function usesCompiler()
- {
- // template has tags, uses compiler
- return true;
- }
-
- /**
- * Return flag that this is not evaluated
- *
- * @return boolean false
- */
- public function isEvaluated()
- {
- // save the compiled file to disk, do not evaluate
- return false;
- }
- /**
* Get filepath to compiled template
*
* @param object $_template template object