Commit Graph

118 Commits

Author SHA1 Message Date
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
5c0d7ad8b4 - added compile_dir and cache_dir to list of muted directories 2011-09-24 15:45:30 +00:00
rodneyrehm
25e31b38f5 fixed error_handler 2011-09-24 14:12:36 +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
985b575e97 oops 2011-09-21 22:45:21 +00:00
rodneyrehm
f1511d813e monte wanted some docs on the topic of error_muting 2011-09-21 22:44:53 +00:00
rodneyrehm
38a3554fa0 optimized autoloader 2011-09-21 22:10:52 +00:00
rodneyrehm
e499fb11f0 oops… 2011-09-21 22:05:54 +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
cade307db0 - bugfix look for mixed case plugin file names as in 3.0 if not found try all lowercase 2011-09-21 19:06:16 +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
monte.ohrt
8842e79107 commit 3.1 into the trunk 2011-09-16 14:19:56 +00:00
uwe.tews@googlemail.com
c4c0cd254c - bugfix experimental getTags() method did not work 2011-07-26 18:09:31 +00:00
uwe.tews@googlemail.com
0c552377cd - bugfix registerFilter() or registerPlugin() on template objects did register to the main Smarty object if the register methods had been used on the main Smarty object before. 2011-06-07 14:31:22 +00:00
uwe.tews@googlemail.com
6443a923cf - workaround for PHP 5.2.13 bug in method_exists() 2011-04-22 02:19:14 +00:00
uwe.tews@googlemail.com
dea3e1f83e - bugfix force default debug.tpl to be loaded by the file resource when default_resource_type was modified 2011-02-19 00:20:45 +00:00
monte.ohrt
f9ce2d8c7e fix typos, rewording 2011-02-11 22:21:17 +00:00
uwe.tews@googlemail.com
9630a99a82 - bugfix dynamic configuration of $debugging_crtl did not work
- bugfix default value of $config_read_hidden changed to false
- bugfix format of attribute array on compiler plugins
- bugfix getTemplateVars() could return value from wrong scope
2010-12-31 13:47:12 +00:00
uwe.tews@googlemail.com
9f3758ace1 do not clone Smarty object on internal createTemplate() calls 2010-12-22 16:35:39 +00:00
uwe.tews@googlemail.com
5522850591 - bugfix missing declaration of $smarty in Smarty class 2010-12-05 17:21:02 +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
21ed644f82 - bugfix when using {$smarty.session} as object
- bugfix scoping problem on $smarty object passed to filters
2010-11-15 19:17:18 +00:00
uwe.tews@googlemail.com
d2cafef753 - small performace patch in Smarty class 2010-11-14 18:46:18 +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
fe63ad36b8 - reverted location of loadPlugin() to Smarty class
- fixed comments in plugins
2010-11-13 04:10:52 +00:00
uwe.tews@googlemail.com
6401833933 - reactivated $error_reporting property handling 2010-11-12 14:53:49 +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
be02af7246 - change Smarty does no longer mask out E_NOTICE by default during template processing 2010-10-19 16:06:52 +00:00
uwe.tews@googlemail.com
18bcfa2ba7 - bugfix {$smarty.template} and {$smarty.current_dir} did not compile correctly within {block} tags
- bugfix corrected error message on missing template files in extends resource
- bugfix untility compileAllTemplates() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS
2010-09-17 18:10:10 +00:00
Uwe.Tews
550a416209 - allow multiple template inheritance branches starting in subtemplates 2010-09-08 17:40:00 +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
f319a15cfc - bugfix in templateExists() method 2010-07-22 19:11:38 +00:00
Uwe.Tews
396d7aa8a5 - bugfix support of script files relative to trusted_dir 2010-07-07 22:08:10 +00:00
Uwe.Tews
ccc0e1b6c8 - added $smarty->register->templateClass() and $smarty->unregister->templateClass() methods for supporting static classes with namespace 2010-06-24 20:30:19 +00:00
Uwe.Tews
b534be00da - replace internal get_time() calls with standard PHP5 microtime(true) calls 2010-06-20 14:37:47 +00:00
Uwe.Tews
d7a629df0c - change default of $debugging_ctrl to 'NONE'
- optimization of compiled code of {foreach} and {for} loops
- change of compiler for config variables
2010-04-28 20:30:27 +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
24d5ad78f3 - bugfix allow array definitions as modifier parameter
- bugfix observe compile_check property when loading config files
- added the template object as third filter parameter
2010-03-29 15:41:01 +00:00
Uwe.Tews
2e27c294b3 - bugfix on template inheritance when calling multiple child/parent relations 2010-03-23 16:51:48 +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
374d801d51 remove comment 2010-03-08 15:16:35 +00:00
Uwe.Tews
3059df16aa - cache modified check implemented 2010-02-26 12:58:36 +00:00
monte.ohrt
7c9aed9299 remove debug code 2010-02-20 23:22:55 +00:00
monte.ohrt
591df13a26 fix __get() return value, and set properties before returning 2010-02-20 21:48:19 +00:00
Uwe.Tews
9afda44ebf - added missing _plugins property in smarty.class.php 2010-02-14 16:42:39 +00:00
Uwe.Tews
43ae585e5e - added $smarty->_tag_stack for tracing block tag hierarchy 2010-02-09 21:20:17 +00:00