Commit Graph

362 Commits

Author SHA1 Message Date
messju
6e94e1897f fixed too agressive {strip} around delimiters inside strip-blocks 2005-02-10 15:14:15 +00:00
messju
468ec392ee fixed handling of strip-tags with non-default delimiters 2005-02-09 14:31:18 +00:00
mohrt
c3e8668266 update version numbers in cvs 2005-02-03 15:14:43 +00:00
mohrt
c5e1cd7185 commit version numbers for new release 2005-02-03 14:41:33 +00:00
messju
bd2abcbbcd fixed handling of hashed opening php-tags inside strip-blocks
(reported by titi_rafa)
2005-01-30 21:54:39 +00:00
mohrt
9959c4f263 de-spammify e-mails 2005-01-21 17:46:15 +00:00
mohrt
215e8784b1 update copyright notices, e-mail addresses 2005-01-21 16:41:52 +00:00
messju
cfb05b1578 reduced the code that is generated on a {foreach}-block that has a
name.

instead of pre-computing all foreach-properties (like first, last,
show) on each iteration, they are computed on demand as soon as
{$smarty.foreach.*}-variables are used.
2005-01-06 17:24:36 +00:00
messju
6e323a8df2 slight optimization in the compilation of $smarty.const.FOO .
@FOO is less code and executed slightly faster than constant('FOO').

more complex consts like $smarty.const.$name still compile to
constant($this->_tpl_vars['name'])
2005-01-06 17:17:05 +00:00
messju
e69c336f76 make block functions and registered objects' block methods use a
local variable for block_content instead of $this->_block_content

it's not necessary to have $smarty->_block_content accessible.
2005-01-05 10:40:11 +00:00
messju
b3245435ab Happy new year from germany. 2005-01-01 11:58:21 +00:00
messju
f44f5bddba fixed escaping of template-filenames in the generated code that loads
needed plugins
2004-12-17 08:30:56 +00:00
messju
50c81af919 removed unused code 2004-11-08 08:26:16 +00:00
messju
e9c72aedce - better header for compiled includes (more in line with compiled
templates)

- reuse cache_serials if a file is compiled more than once in one
  process (force_compile)

- don't print nocache-delimiters wenn already inside
process_cached_inserts()
2004-10-01 15:26:44 +00:00
messju
ed30e1ad20 added some property declarations 2004-09-29 07:16:17 +00:00
messju
355fd8292e fixed handling of object derefence inside backticks 2004-09-21 15:28:04 +00:00
boots
a0d021ef60 Moved /libs/core to /libs/internals and created new constant, SMARTY_CORE_DIR which defaults to SMARTY_DIR/internals. This should help CVS and rsynch users butupgrades will require changes and this may affect 3rd party plugins that use the /core dir. 2004-09-16 23:07:32 +00:00
messju
0580734ff9 moved $this->_num_const_regexp out of $this->_var_regexp and added it
to the places that affect $this->_var_regexp

this should fix some problems parsing plugin-names endings with digits
2004-09-15 18:58:55 +00:00
messju
ed00361206 update files to 2.6.6-dev 2004-09-14 07:39:01 +00:00
mohrt
3ad2d686e9 fix more object calling syntax issues 2004-09-11 00:14:20 +00:00
messju
33adc4573e added $smarty->security_settings['ALLOW_CONSTANTS']
including test-cases for them
2004-09-10 19:15:01 +00:00
mohrt
614e9c89e2 break down regex to digestable chunks, fix multiple param problem with method calls,
add object method testing to unit_test cases
2004-09-09 22:01:33 +00:00
mohrt
f36648c39c update code comment with more examples 2004-09-09 18:25:55 +00:00
mohrt
1d1e095e8e allow objects in arbitrary param positions 2004-09-09 18:21:09 +00:00
mohrt
9ea847409c fix object parameter regex, allow one level of object indirection 2004-09-09 16:09:55 +00:00
mohrt
8cbe83510b fix compile problem with numeric constants and math operator matching 2004-09-09 13:40:14 +00:00
mohrt
8b8b102a01 update files to 2.6.5-dev 2004-09-07 14:48:55 +00:00
mohrt
935ab8630a fix preg_quote 2004-08-31 18:18:36 +00:00
mohrt
3bf0af8517 fix math in object params, clean up some regex on the way, change
preg_ delimiters to ~ to avoid character clashes with ! and %
2004-08-31 16:35:57 +00:00
mohrt
bf9153bd8a add $smarty.ldelim and $smarty.rdelim to smarty special var 2004-08-30 14:54:30 +00:00
messju
1af7561db2 cleaned up attribute-handling in Smarty_Compiler::_compile_foreach_start() 2004-08-23 20:21:19 +00:00
messju
06bb354663 fixed handling of {foreachelse} and {sectionelse} that got borked with
the latest commit (v 1.330)
2004-08-13 13:32:27 +00:00
messju
6217c69fb1 fixed occasional wrong error messages on mismatched tags when
{else}, {elseif}, {foreachelse} or {sectionelse} is involved

thanks to Ooypunk for pointing me on this
2004-08-12 21:07:24 +00:00
messju
15435172b7 fixed handling of methods arguments.
thanks to Manfred Wischin for finding this one and providing the
conceptual fix.
2004-07-27 17:59:35 +00:00
messju
c9844d410b backed out renaming of _get_plugin_filepath() to get_plugin_filepath()
we'll stick to _get_plugin_filepath() and look for a more viable
solution to be exposed to plugin-writers.
2004-07-23 15:34:53 +00:00
messju
9942c8b42f Some fixes on PhpDocumentor comments. Thanks go to Ruben Vermeersch. 2004-07-20 11:51:05 +00:00
messju
4d1af77893 renamed Smarty::_get_plugin_filepath() to Smarty::get_plugin_filepath() 2004-07-12 15:22:57 +00:00
messju
8c83b9e88b enhanced error-reporting for {foreach} 2004-07-01 15:39:34 +00:00
messju
cc08082d67 fixed handling of digits inside tagnames. this problem slipped into
the regexps by adding support for numeric contants next to string
constants as variables.
2004-07-01 12:20:43 +00:00
messju
b43d689706 fixed escaping of backslashes in Smarty_Compiler::_quote_replace() 2004-06-27 19:37:34 +00:00
messju
12af99a73d changed version-number to 2.6.4-dev 2004-06-17 08:55:10 +00:00
messju
b85b3fcb7f fixed typo in error-messages 2004-05-21 14:11:41 +00:00
messju
4d340b91c9 removed unused 2nd param in call to _parse_var() 2004-04-16 10:31:43 +00:00
messju
984d2f36e6 added explanation for $this->_num_const_regexp 2004-04-16 08:50:27 +00:00
messju
397714a96c enabled numerical constants be parsed as statements.
(like {10} or {10|@range:12} )
2004-04-16 08:34:39 +00:00
messju
886059c511 removed unused $smarty_compiler->_dvar_num_var_regexp 2004-04-16 08:30:10 +00:00
messju
729ebe26ed Smarty_Compiler.class.php 2004-04-16 07:53:37 +00:00
messju
fff19de349 updated version to 2.6.3-dev 2004-02-23 23:14:40 +00:00
mohrt
cf52c81e0a change some info in headers, remove fluff 2004-02-17 15:52:02 +00:00
messju
7703839dbb removed two notices from Smarty_Compiler::_parse_is_expr()
(thanks shuther!)
2004-02-07 20:55:27 +00:00