Commit Graph

80 Commits

Author SHA1 Message Date
Uwe Tews
80bf76cc6e move internal createTemplateCodeFrame() method into an extension class 2015-01-01 22:59:07 +01:00
Uwe Tews
460be5a5da bugfix for recent changes of {function} tag handling 2014-11-10 23:57:30 +01:00
Uwe Tews
b82756a705 - bugfix subtemplate called in nocache mode could be called with wrong compile_id when it did change on one of the calling templates 2014-11-08 21:27:53 +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
d82d54bffd fix line endings 2014-03-17 21:57:15 +00:00
Uwe.Tews@googlemail.com
f06013927c - bugfix Smarty failed when executing PHP on HHVM (Hip Hop 2.4) because uniqid('',true) does return string with ',' (forum topic 20343) 2014-02-17 18:21:31 +00:00
Uwe.Tews@googlemail.com
5bbfbafc47 - improvement added patch for additional SmartyCompilerException properties for better access to scource information (forum topic 24559) 2013-09-17 20:44:41 +00:00
Uwe.Tews@googlemail.com
98c1dd29cd - bugfix and enhancement
Because several recent problems with template inheritance the {block} tag compiler has been rewriten
   - Error messages shown now the correct child template file and line number
   - The compiler could fail on some larger UTF-8 text block (forum topic 24455}
   - The {strip} tag can now be placed outside {block} tags in child templates (forum topic 24289}
- change SmartyException::$escape  is now false by default
- change PHP traceback has been remove for SmartyException and SmartyCompilerException
2013-08-24 18:46:31 +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
b0b2c0e86d 17.06.2013
- fixed spelling in sources and documentation (from smarty-developers forum Veres Lajos)
2013-06-17 12:34:10 +00:00
Uwe.Tews@googlemail.com
f074a20ed5 - bugfix after the fix for Issue #130 compiler exceptions got double escaped (Forum Topic 24199) 2013-04-05 22:19:13 +00:00
Uwe.Tews@googlemail.com
58f2227cce - bugfix post filter must not run when compiling inheritance child blocks (Forum Topic 24094) 2013-04-05 21:19:28 +00:00
uwe.tews@googlemail.com
2140439352 - bugfix wrong tag type in smarty_internal_templatecompilerbase.php could cause wrong plugin search order (Forum Topic 24028) 2013-01-24 19:16:41 +00:00
uwe.tews@googlemail.com
af4735193e - added abstract method declaration doCompile() in Smarty_Internal_TemplateCompilerBase (Forum Topic 23969) 2013-01-09 23:54:31 +00:00
uwe.tews@googlemail.com
9d34e78d0b 17.08.2012
- bugfix compiled code of nocache sections could contain wrong escaping (Forum Topic 22810)
2012-08-17 11:19:16 +00:00
uwe.tews@googlemail.com
090ba8e7c5 - bugfix template inheritance did produce wrong code if subtemplates with {block} was
included several times (from smarty-developers forum)
2012-08-15 15:09:12 +00:00
uwe.tews@googlemail.com
42d2ee98dd 09.06.2012
- bugfix the compiler did ignore registered compiler plugins for closing tags (Forum Topic 22094)
2012-06-09 14:00:57 +00:00
uwe.tews@googlemail.com
409e39c4ec - bugfix "\\" was not escaped correctly when generation nocache code (Forum Topic 21364) 2012-04-08 12:08:48 +00:00
uwe.tews@googlemail.com
d157cac590 - bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325) 2012-03-27 14:44:46 +00:00
uwe.tews@googlemail.com
065db28777 - optimization of compiling speed when same modifier was used several times 2012-03-03 14:10:39 +00:00
uwe.tews@googlemail.com
c000b3a480 - enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000) 2012-02-07 21:55:37 +00:00
uwe.tews@googlemail.com
1b25005d42 - bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730) 2011-12-29 18:44:09 +00:00
uwe.tews@googlemail.com
05f17be99a - bugfix Smarty's internal header code must be excluded from postfilters (issue 71) 2011-12-28 18:51:20 +00:00
uwe.tews@googlemail.com
f14c4bfb9c - bugfix added exception if the default plugin handler did return a not static callback (Forum Topic 20512) 2011-11-29 17:47:37 +00:00
uwe.tews@googlemail.com
8b414e3b8a - bugfix cache file could include unneeded modifier plugins under certain condition 2011-11-21 00:37:33 +00:00
uwe.tews@googlemail.com
8bab7fe522 - bugfix has_nocache_code flag was not reset before compilation 2011-10-04 18:58:17 +00:00
uwe.tews@googlemail.com
bc2d519c38 - bugfix on template functions called nocache calling other template functions 2011-09-28 15:56:01 +00:00
uwe.tews@googlemail.com
8e6626fbca - bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar}
- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true
2011-09-18 18:36:26 +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
c859f6a9ae - bugfix PHP did eat line break on nocache sections 2011-07-12 17:20:45 +00:00
uwe.tews@googlemail.com
1757b274d6 - bugfix on error message in smarty_internal_compile_block.php
- bugfix mb handling in strip modifier
- bugfix for Smarty2 style registered compiler function on unnamed attribute passing like {tag $foo $bar}
2011-03-28 22:18:39 +00:00
uwe.tews@googlemail.com
fe26cf256e - bugfix replace modifier did not work in 3.0.7 on systems without multibyte support
- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of 
         child name when it needed to compile
2011-03-01 19:47:44 +00:00
uwe.tews@googlemail.com
e583777976 - bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar} 2011-02-25 16:09:28 +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
uwe.tews@googlemail.com
9ef3c770ef -bugfix removed memory leak while processing compileAllTemplates 2011-01-14 18:39:16 +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
b9477b0deb - bugfix added missing support of $cache_attrs for registered plugins 2010-12-17 21:05:29 +00:00
uwe.tews@googlemail.com
c08664e75e -bugfix allow integer as attribute name in plugin calls
-change  trimm whitespace from error message, removed long list of expected tokens
2010-11-23 23:36:16 +00:00
uwe.tews@googlemail.com
1153ea5a5a - bugfix on template inheritance when an {extends} tag was inserted by a prefilter 2010-11-22 19:43:11 +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
fe63ad36b8 - reverted location of loadPlugin() to Smarty class
- fixed comments in plugins
2010-11-13 04:10:52 +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
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
cbe2f3356f - removed call_user_func_array calls for optimization of compiled code when using registered modifiers and plugins
- updated comments
2010-07-01 19:57:56 +00:00
Uwe.Tews
3197470ca5 - reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag. 2010-05-11 17:01:08 +00:00
Uwe.Tews
d1986c6cff - bugfix on {insert} 2010-05-07 13:08:46 +00:00