Commit Graph

61 Commits

Author SHA1 Message Date
uwe.tews@googlemail.com
cfd81bafba fix memory leak 2011-01-14 21:51:08 +00:00
uwe.tews@googlemail.com
9ef3c770ef -bugfix removed memory leak while processing compileAllTemplates 2011-01-14 18:39:16 +00:00
uwe.tews@googlemail.com
f0c95ab79c - bugfix {$smarty.template} in child template did not return right content
- bugfix Smarty3 did not search the PHP include_path for template files
2010-12-13 22:05:27 +00:00
uwe.tews@googlemail.com
e80dd75958 -change run output filter before cache file is written (as in Smarty2) 2010-11-27 15:05:38 +00:00
uwe.tews@googlemail.com
ef85c9f2ad - bugfix captured content could not be accessed globally
- bugfix Smarty2 wrapper functions could not be call from within plugins
2010-11-15 22:54:59 +00:00
uwe.tews@googlemail.com
6ff5c28343 - bugfix overloading problem when $smarty->fetch()/display() have been used in plugins 2010-11-13 18:32:50 +00:00
uwe.tews@googlemail.com
5d278ce5ad - code cleanup 2010-11-13 17:48:30 +00:00
uwe.tews@googlemail.com
7dc5c0a09d - bugix overloading problem when $smarty->fetch()/display() have been used in plugins (introduced with 3.0.2) 2010-11-13 15:26:03 +00:00
uwe.tews@googlemail.com
fe63ad36b8 - reverted location of loadPlugin() to Smarty class
- fixed comments in plugins
2010-11-13 04:10:52 +00:00
uwe.tews@googlemail.com
f044178bad - major update including some API changes 2010-11-11 21:34:36 +00:00
uwe.tews@googlemail.com
415d2f43e2 - added {break} and {continue} tags for flow control of {foreach},{section},{for} and {while} loops
- change of 'string' resource. It's no longer evaluated and compiled files are now stored
- new 'eval' resource which evaluates a template without saving the compiled file
- change in isCached() method to allow multiple calls for the same template
2010-10-01 13:19:53 +00:00
uwe.tews@googlemail.com
44c6732970 15/09/2010
- bugfix resolving conflict between '<%'/'%>' as custom Smarty delimiter and ASP tags
- use ucfirst for resource name on internal resource class names
2010-09-15 15:17:28 +00:00
uwe.tews@googlemail.com
255c271246 - bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) 2010-09-10 11:15:15 +00:00
Uwe.Tews
550a416209 - allow multiple template inheritance branches starting in subtemplates 2010-09-08 17:40:00 +00:00
Uwe.Tews
96e3d9937a - fixed E_STRICT errors for uninitialized variables 2010-08-23 14:40:10 +00:00
monte.ohrt
21d507a5cb fix formatting 2010-08-17 15:39:51 +00:00
Uwe.Tews
ad921936b0 - remove exception_handler property from Smarty class
- added Smarty's own exceptions SmartyException and SmartyCompilerException
2010-08-13 10:39:51 +00:00
Uwe.Tews
e8fbee624d - bugfix on nocache attribute at {assign} and {append} 2010-07-31 13:29:59 +00:00
Uwe.Tews
c1e1c03892 - make the date_format modifier work also on objects of the DateTime class
- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output
2010-07-14 22:47:37 +00:00
Uwe.Tews
db38a0aaec - bugfix on assigning multidimensional arrays within templates
- corrected bugfix for truncate modifier
2010-07-08 18:30:03 +00:00
Uwe.Tews
8bf398e22c - bugfix removed decrepated register_resource call in smarty_internal_template.php 2010-05-26 20:35:15 +00:00
Uwe.Tews
6e97a8a393 - bugfix make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally 2010-05-11 16:24:24 +00:00
Uwe.Tews
1eb8a44b0f - bugfix typo in smarty_internal_templatecompilerbase and smarty_internal_template 2010-04-07 15:19:02 +00:00
Uwe.Tews
b52e9f1ac8 - compile locking by touching old compiled files to avoid concurrent compilations 2010-03-31 16:23:01 +00:00
Uwe.Tews
63d671b935 - bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0 2010-03-23 17:08:46 +00:00
monte.ohrt
cba54ad3d8 remove old API call 2010-03-10 16:21:16 +00:00
Uwe.Tews
5e2bf86e66 - bugfix on uninitialized properties in smarty_internal_template
- bugfix on $smarty->disableSecurity()
2010-03-09 21:11:21 +00:00
monte.ohrt
689ee2c73c fix overload error 2010-03-09 15:14:11 +00:00
monte.ohrt
54a8dcd343 add __get() to templateCreate class 2010-03-08 16:20:19 +00:00
monte.ohrt
05a9c3beab add setters/getters to created templates 2010-03-08 15:15:41 +00:00
Uwe.Tews
a2a7942cea - bugfix allow uppercase chars in registered resource names 2010-03-04 15:49:48 +00:00
Uwe.Tews
3898f593f4 - allow block tags inside double quoted string 2010-02-27 20:10:32 +00:00
Uwe.Tews
b48ef33cd5 - bugfix of cache filename on extended templates when force_compile=true 2010-02-08 17:39:48 +00:00
Uwe.Tews
d19fbb19d9 - bugfix on changes of 05/02/2010 2010-02-07 20:45:44 +00:00
monte.ohrt
9af377d7d3 major API update 2010-02-06 22:11:10 +00:00
Uwe.Tews
3ad446bb21 - bugfix on modifier and block plugins with same name 2010-02-05 17:03:22 +00:00
Uwe.Tews
8defafbb14 - bugfix cache resource was not loaded when caching was globally off but enabled at a template object 2010-01-25 18:10:35 +00:00
Uwe.Tews
17a8c7f0a2 - bugfix on file dependendcy at template inheritance
- bugfix on nocache code at template inheritance
2010-01-07 19:33:18 +00:00
Uwe.Tews
d287c6b1d9 - bugfix sha1() calculations at extends resource and some general improvments on sha1() handling 2010-01-05 21:10:25 +00:00
Uwe.Tews
a6c2f5f8d4 - internal change on building cache files 2010-01-03 11:53:28 +00:00
Uwe.Tews
4519218f04 - update cached_timestamp at the template object after cache file is written to avoid possible side effects
- use internally always SMARTY_CACHING_LIFETIME_* constants
2010-01-02 12:15:04 +00:00
Uwe.Tews
72219be200 - optimization of generated code for doublequoted strings containing variables
- rewrite of {function} tag handling
  - can now be declared in an external subtemplate
  - can contain nocache sections (nocache_hash handling)
  - can be called in noccache sections (nocache_hash handling)
  - new {call..} tag to call template functions with a variable name {call name=$foo}
- fixed nocache_hash handling in merged compiled templates
2009-12-31 16:38:12 +00:00
Uwe.Tews
7a8e24cfc1 - internal change on merging some data 2009-12-29 22:27:04 +00:00
Uwe.Tews
d1969d6f56 - use sha1() for filepath encoding
- updates on nocache_hash handling
2009-12-29 20:12:11 +00:00
Uwe.Tews
de4957a151 - update for security fixes
- make modifier plugins always trusted
2009-12-28 15:27:13 +00:00
monte.ohrt
f908aa0a27 update cache logic to use secure dynamic cache id 2009-12-28 05:08:45 +00:00
Uwe.Tews
44dd7830dd --- 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)
2009-12-27 15:06:49 +00:00
Uwe.Tews
b2db17992b - bugfix on single quote inside {function} tag 2009-12-12 11:51:07 +00:00
Uwe.Tews
74a20f4650 - removed unneeded lexer code 2009-12-05 15:10:47 +00:00
Uwe.Tews
319f0c88fb - map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter 2009-11-30 17:52:13 +00:00