Commit Graph

19 Commits

Author SHA1 Message Date
rodneyrehm
e91ee4c5ec improved include_path resolving 2012-02-06 20:45:10 +00:00
uwe.tews@googlemail.com
e439c13a3e - bugfix the source exits flag and timestamp was not setup when temple is in php include path (issue 69) 2011-12-16 17:00:51 +00:00
rodneyrehm
0fb537aed2 - bugfix Smarty_Resource::load() did not always return a proper resource handler (Forum Topic 20414) 2011-11-16 08:25:33 +00:00
rodneyrehm
131553272a - bugfix Smarty_Resource and Smarty_CacheResource runtime caching (Forum Post 75264)
www.smarty.net/forums/viewtopic.php?p=75264#75264
2011-10-15 10:46:03 +00:00
rodneyrehm
8a82d84861 - add locking to custom resources (Forum Post 75252)
this is a potentially dirty commit
2011-10-14 16:17:27 +00:00
rodneyrehm
ef3e29daa7 - bugfix unique_resource did not properly apply to compiled resources (Forum Topic 20128) 2011-10-14 09:31:09 +00:00
rodneyrehm
81c068dc3a f***ing phpunit now doing what it's supposed to. 2011-10-13 15:36:35 +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
rodneyrehm
3b006ae5a1 - add caching for config files in Smarty_Resource
(not really sure why this wasn't implemented yet?!) If we removed this (for some reason) we should've made a note of it in the code...
2011-10-13 09:50:55 +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
aff7c6a0ab - improvement replaced most in_array() calls by more efficient isset() on array_flip()ed haystacks
- added notes on possible performance optimization/problem with Smarty_Security
2011-10-01 18:10:48 +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
50a8f805dd - remove unused properties
- optimization use real function instead anonymous function for preg_replace_callback
- bugfix a relative {include} in child template blocks failed
- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an 
  extended Smarty class created problems
2011-09-23 20:21:16 +00:00
rodneyrehm
48295d9573 - reverted ./ and ../ handling in fetch() and display() - they're allowed again 2011-09-21 23:06:27 +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
rodneyrehm
2df84e24a6 - bugfix relative paths in $template_dir broke relative path resolving in {include "../foo.tpl"} 2011-09-20 14:12:34 +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
uwe.tews@googlemail.com
00d45f4d3f - bugfix reverted resource caching as it could not detect template_dir changes 2011-09-16 22:31:34 +00:00
monte.ohrt
8842e79107 commit 3.1 into the trunk 2011-09-16 14:19:56 +00:00