rodneyrehm
b977381e4e
bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110)
2012-08-14 13:22:34 +00:00
uwe.tews@googlemail.com
8c3bcf9eef
- bugfix concurrent cache updates could create a warning (Forum Topic 21403)
2012-04-12 16:55:35 +00:00
rodneyrehm
7659c6c0ea
- add Smarty::$allow_ambiguous_resources to activate unique resource handling (Forum Topic 20128)
...
see http://www.smarty.net/forums/viewtopic.php?t=20128
2011-10-21 18:40:16 +00:00
rodneyrehm
6baca38bf1
- improvement sha1() for array keys longer than 150 characters
2011-10-21 12:10:41 +00:00
rodneyrehm
6470e6a2c9
- improvement removed unnecessary sha1()
...
(and added previously forgotten templates for ClearCompileTests)
2011-10-20 20:28:21 +00:00
rodneyrehm
94dff13c89
removing todos
2011-10-13 13:41:59 +00:00
rodneyrehm
6979b4efb0
- add concept unique_resource to combat potentially ambiguous template_resource values when custom resource handlers are used (Forum Topic 2012)
...
http://www.smarty.net/forums/viewtopic.php?t=2012
thereby DRYed and optimized the resource handler identification method.
2011-10-13 13:10:06 +00:00
uwe.tews@googlemail.com
12e8593760
- improvement add internal $joined_template_dir property instead computing it on the fly several times
2011-10-03 19:02:44 +00:00
rodneyrehm
d0228e96ea
- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application
...
- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable
error muting is now a global thing. this was done because of the overhead set_error_handler imposes and the fact, that only a few people really "need" this.
The decision was made by uwe.tews and rodneyrehm. (just in case anyone asks…)
2011-09-24 12:56:52 +00:00
uwe.tews@googlemail.com
537285032c
- bugfix error muting was not implemented for cache locking
2011-09-23 22:27:44 +00:00
rodneyrehm
7a6b9dba91
- added $error_muting to suppress error messages even for badly implemented error_handlers
...
- reverted r4301
2011-09-21 22:02:54 +00:00
uwe.tews@googlemail.com
a44d9a6ac9
- bugfix template caching did not care about file.tpl in different template_dir
...
- bugfix {include $file} was broken when merge_compiled_incluges = true
- bugfix {include} was broken when merge_compiled_incluges = true and same indluded template
was used in different main templates in one compilation run
2011-09-18 02:31:58 +00:00
rodneyrehm
c9be9cd7f9
- bugfix lock_id for file resource would create invalid filepath
...
- bugfix resource caching did not care about file.tpl in different template_dir
- added svn:ignore where necessary
2011-09-17 16:29:10 +00:00
monte.ohrt
8842e79107
commit 3.1 into the trunk
2011-09-16 14:19:56 +00:00
uwe.tews@googlemail.com
34d5029469
- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object
2011-02-24 15:28:03 +00:00
uwe.tews@googlemail.com
0e863c651d
-improvement not to delete files starting with '.' from cache and template_c folders on clearCompiledTemplate() and clearCache()
2011-02-17 15:43:37 +00:00
uwe.tews@googlemail.com
147c5d0631
- bugfix on output buffer handling in isCached() method
2010-10-13 23:22:57 +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
f7fd63e890
- improved speed of cache->clear() when a compile_id was specified and use_sub_dirs is true
2010-06-21 20:10:22 +00:00
Uwe.Tews
4e27b70ba5
- bugfix in $smarty->cache->clear() method. (do not cache template object)
2010-04-27 17:47:24 +00:00
Uwe.Tews
d89e53c2f6
- bugfix make $smarty->cache->clear() function independent from caching status
2010-03-17 17:37:32 +00:00
Uwe.Tews
9f5d885835
- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....)
2010-02-10 18:00:41 +00:00
Uwe.Tews
24141e81dd
- bugfix use template fullpath at §smarty->cache->clear(...), $smarty->clear_cache(....)
2010-02-08 21:04:43 +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
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
67641b63e8
- fixed cache filename for custom resources
2009-12-29 23:46:31 +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
36da15cee8
- update of getCachedTimestamp()
2009-12-27 19:12:51 +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
aaa7b8f245
- bugfix of parent/global variable update at included/merged subtemplates
...
- encode final template filepath into filename of compiled and cached files
2009-12-17 16:58:44 +00:00
Uwe.Tews
4925a98949
- suppress warnings on unlink caused by race conditions
...
- correct line number on unknown tag error message
2009-11-23 22:31:22 +00:00
Uwe.Tews
a63bc0f83b
- sanitize compile_id and cache_id (replace illegal chars with _)
...
- use _dir_perms and _file_perms properties at file creation
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
2009-11-17 17:46:03 +00:00
Uwe.Tews
94b80e892b
- renamed function names of autoloaded Smarty methods to Smarty_Method_....
...
- new security_class property (default is Smarty_Security)
2009-11-03 20:38:38 +00:00
Uwe.Tews
cf379474fd
- change of filenames in sysplugins folder for internal spl_autoload function
...
- lexer/parser changed for increased compilation speed
2009-10-31 00:44:58 +00:00