Commit Graph

34 Commits

Author SHA1 Message Date
Uwe Tews
c3aa9994c8 rework source resource handling
- move class Smarty_Template_Source into its own file
- impelement all source processing into the classes it better belongs to
2015-01-01 23:34:29 +01:00
Uwe Tews
bc13ebbc9b -bugfix and enhancement on subtemplate {include} and template {function} tags.
* Calling a template which has a nocache section could fail if it was
called from a cached and a not cached subtemplate.
* Calling the same subtemplate cached and not cached with the
$smarty->merge_compiled_includes enabled could cause problems
* Many smaller related changes
2014-11-01 22:42:34 +01:00
Uwe.Tews@googlemail.com
425091a19f - fixed spelling, PHPDoc , minor errors, code cleanup 2014-06-06 02:40:04 +00:00
Uwe.Tews@googlemail.com
c3e6823f5d - bugfix notice "Trying to get property of non-object" removed (Issue 163) 2013-10-28 23:53:01 +00:00
Uwe.Tews@googlemail.com
fccd80818b - bugfix yesterdays fix could result in an undefined variable 2013-10-14 07:47:49 +00:00
Uwe.Tews@googlemail.com
c3994f4006 .- bugfix relative includes with same name like {include './foo.tpl'} from different folder failed (forum topic 24590)(Issue 161) 2013-10-13 17:49:38 +00:00
Uwe.Tews@googlemail.com
953f6f5a14 - improvement on performance when using error handler and multiple template folders (issue 152) 2013-10-01 18:56:49 +00:00
Uwe.Tews@googlemail.com
3ad903ad21 - bugfix the internal resource cache did not observe config_dir changes (forum topic 24493) 2013-08-13 20:54:59 +00:00
Uwe.Tews@googlemail.com
584886cb1c - update code generated by PSR-2 standards fixer which introduced PHP 5.4 incompatibilities of 14.7.2013 2013-07-15 18:18:28 +00:00
Uwe.Tews@googlemail.com
00ccae8857 - update for PHP 5.4 compatibility
- reformat source to PSR-2 standard
2013-07-14 22:15:45 +00:00
Uwe.Tews@googlemail.com
917f92d38b - bugfix Do not remove '//' from file path at normalization (Issue 142) 2013-07-12 00:16:43 +00:00
Uwe.Tews@googlemail.com
b0b2c0e86d 17.06.2013
- fixed spelling in sources and documentation (from smarty-developers forum Veres Lajos)
2013-06-17 12:34:10 +00:00
rodneyrehm
9ef8d6045f bugfix resolving relative paths broke in some circumstances (Issue #114) 2012-08-31 19:39:28 +00:00
rodneyrehm
a37492e04a bugfix fetch() and display() with relative paths (Issue 104) 2012-06-07 12:54:02 +00:00
uwe.tews@googlemail.com
179c62e4ef - bugfix add compile_id to cache key of of source (Issue 97) 2012-05-24 17:03:31 +00:00
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