Commit Graph

47 Commits

Author SHA1 Message Date
Simon Wisselink
62d772e734 Fixed broken nesting and null handling. 2020-01-27 16:02:02 +01:00
Simon Wisselink
388993e9ca Fix foreachelse on arrayiterators
Keep track of main loop using a do_else variable.
Fixed #506
2020-01-27 15:24:45 +01:00
uwetews
2d1905cd88 - bugfix {foreach} using new style property access like {$item@property} on
Smarty 2 style named foreach loop could produce errors https://github.com/smarty-php/smarty/issues/484
2018-09-03 01:18:26 +02:00
uwetews
4f7cd8f1b3 - reformating for PSR-2 coding standards https://github.com/smarty-php/smarty/pull/483 2018-08-31 16:45:09 +02:00
Sławomir Kaleta
2404095783 Update PSR-2 2018-06-12 09:58:15 +02:00
Uwe Tews
96fd914cc1 bugfix rework of newline spacing between tag code and template text.
now again identical with Smarty2 (forum topic 26878)
2017-11-20 04:07:51 +01:00
Uwe Tews
3fc8abeb98 code cleanup and optimizations 3.1.32-dev-34 2017-11-06 01:02:56 +01:00
Uwe Tews
dd9c076dfa - correction of PHPDoc blocks
- minor code cleanup
2017-10-26 10:25:41 +02:00
uwetews
62099617ae - improvement {foreach} observe {break n} and {continue n} nesting levels when restoring saved $item and $key variables 2016-09-09 22:54:42 +02:00
uwetews
79a4fdcd52 - bugfix {foreach} if key variable and item@key attribute have been used both the key variable was not updated https://github.com/smarty-php/smarty/issues/254 2016-07-18 05:27:46 +02:00
uwetews
0fcac38c70 - optimization {foreach} compiler and processing 2016-05-16 17:57:06 +02:00
uwetews
4530a8232f - new feature/bugfix {foreach}{section} add 'properties' attribute to force compilation of loop properties
see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189
2016-02-20 21:45:21 +01:00
uwetews
b832cd36a5 - bugfix {strip} must keep space between hmtl tags. Broken by changes of 10.2.2016 https://github.com/smarty-php/smarty/issues/184
- new feature/bugfix {foreach}{section} new attribute 'property' to force compilation of loop property
    read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189 (reverted from commit 4958deaf09)
2016-02-20 21:33:31 +01:00
uwetews
4958deaf09 - bugfix {strip} must keep space between hmtl tags. Broken by changes of 10.2.2016 https://github.com/smarty-php/smarty/issues/184
- new feature/bugfix {foreach}{section} new attribute 'property' to force compilation of loop property
    read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189
2016-02-20 21:13:38 +01:00
uwetews
b04486a091 - reformat all code for unique style 2016-02-09 01:27:15 +01:00
uwetews
afec7564d6 - optimization of {foreach} code size and processing 2015-12-28 00:58:22 +01:00
uwetews
dc9872e0e2 - bugfix broken PHP 5.2 compatibility https://github.com/smarty-php/smarty/issues/139 2015-12-19 21:55:32 +01:00
uwetews
fa3aed33ee - bugfix {foreach} did fail if from atrribute is a Generator class https://github.com/smarty-php/smarty/issues/128 2015-12-16 03:25:33 +01:00
uwetews
888014b908 - new extension handler to load functions when called 2015-10-24 05:02:24 +02:00
uwetews
ad65c850f7 - move some code into runtime extensions 2015-10-21 02:02:42 +02:00
uwetews
d5ca4518be - bugfix {foreach} first attribute was not correctly reset since commit 05a8fa2 of 02.08.2015 https://github.com/smarty-php/smarty/issues/90 2015-09-17 21:01:48 +02:00
uwetews
0260b525b8 introduce Smarty::$resource_cache_mode and cache template object of {include} inside loop 2015-08-10 21:57:06 +02:00
Uwe Tews
e1cc514a68 - avoid possible circular object referances caused by parser/lexer objects 2015-08-06 01:19:11 +02:00
Uwe Tews
e205cb7a89 - optimization and code cleanup of {foreach} and {section} compiler 2015-08-02 19:43:21 +02:00
Uwe Tews
c5cdd90352 - optimize {foreach} and {section} compiler 2015-07-31 01:03:29 +02:00
Uwe Tews
b1fdc085e7 - optimization get rid of __get and __set in source object 2015-07-06 03:25:03 +02:00
Uwe Tews
7e7112153a search {foreach} properties also in parent compiler 2015-07-01 13:01:16 +02:00
Uwe Tews
a756ce3d9e add error messages 2015-07-01 10:46:51 +02:00
Uwe Tews
9ac1dd44e2 - update {foreach} compiler 2015-07-01 03:30:08 +02:00
Uwe Tews
07c781d9cf - bugfix in nested {foreach} saved item attributes got overwritten https://github.com/smarty-php/smarty/issues/33 2015-05-13 00:33:23 +02:00
Uwe Tews
464b37c053 optimize compiled code of {foreach} 2015-02-15 16:58:42 +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
474e863af1 - bugfix using a {foreach} property like @iteration could fail when used in inheritance parent templates (Issue 182) 2014-03-24 18:52:29 +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
rodneyrehm
655cbc94bc - improvement replaced some strlen($foo) > 3 calls by isset($foo[3]) 2011-10-01 18:47:56 +00:00
uwe.tews@googlemail.com
6e22abb6dd - bugfix {foreachelse} does fail if {section} was nested inside {foreach} 2011-09-22 14:51:34 +00:00
monte.ohrt
8842e79107 commit 3.1 into the trunk 2011-09-16 14:19:56 +00:00
uwe.tews@googlemail.com
7135787127 - bugfix isset() did not allow multiple parameter
- improvment of some error messages
- bugfix html_image did use removed property $request_use_auto_globals
2010-11-14 15:08:44 +00:00
uwe.tews@googlemail.com
f044178bad - major update including some API changes 2010-11-11 21:34:36 +00:00
monte.ohrt
21d507a5cb fix formatting 2010-08-17 15:39:51 +00:00
Uwe.Tews
c83ef6792c - create exception on recursive {extends} calls
- fixed reported line number at "unexpected closing tag " exception
- bugfix on escape:'mail' modifier
- drop exception if 'item' variable is equal 'from' variable in {foreach} tag
2010-07-06 20:00:41 +00:00
Uwe.Tews
95869f258e - allow spaces between typecast and value in template syntax
- bugfix get correct count of traversables in {foreach} tag
2010-06-22 18:09:12 +00:00
Uwe.Tews
2d1ce2f940 - bugfix on {foreach} and {for} optimizations of 27/04/2010 2010-05-10 20:08:24 +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
ba6ba0cf8d - fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables 2009-11-11 16:15:47 +00:00
monte.ohrt
3386b94e15 change linefeed style to native on all files 2009-11-06 14:35:00 +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