Commit Graph

105 Commits

Author SHA1 Message Date
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
Uwe.Tews 7bfa54f067 - bugfix on changes of 05/02/2010 2010-02-07 22:21:37 +00:00
monte.ohrt 9af377d7d3 major API update 2010-02-06 22:11:10 +00:00
Uwe.Tews 3c88d12e00 - added test that $_SERVER['SCRIPT_NAME'] does exist in Smarty.class.php 2010-01-25 19:02:34 +00:00
Uwe.Tews e89c15d65d - new method $smarty->createData([$parent]) for creating a data object (required for bugfixes below)
- bugfix config_load() method now works also on a data object
- bugfix get_config_vars() method now works also on a data and template objects
- bugfix clear_config() method now works also on a data and template objects
2010-01-22 16:39:30 +00:00
Uwe.Tews d1969d6f56 - use sha1() for filepath encoding
- updates on nocache_hash handling
2009-12-29 20:12:11 +00:00
monte.ohrt 55d50efb1d set default cache lifetime to 3600, BC with Smarty 2 2009-12-28 03:22:57 +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 319f0c88fb - map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter 2009-11-30 17:52:13 +00:00
Uwe.Tews 27d3a21fb4 - added cache resource MYSQL plugin 2009-11-27 20:46:56 +00:00
Uwe.Tews 4286ad068b - observe umask settings when setting file permissions
- avoide unneeded cache file creation for subtemplates which did occur in some situations
2009-11-18 17:25:18 +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 9f505c1c23 - lexer/parser optimizations on quoted strings 2009-11-15 19:05:53 +00:00
Uwe.Tews 6154717b48 - fixed locaion where outputfilters are running
- fixed config file definitions at EOF
2009-11-14 13:02:48 +00:00