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
mohrt
b93ef92f07
fix _read_file comments
2004-12-28 17:24:16 +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
mohrt
5efa19cf96
fix invalid HTML issue with popup
2004-12-15 20:42:05 +00:00
boots
639bd2c553
- fixed {popup} to properly handle inarray and function parameters and added support for mouseoff and followmouse options
2004-12-06 20:09:12 +00:00
messju
07e6982d1d
cleaned up typecasting
2004-11-16 08:05:21 +00:00
messju
b96c5db2ea
fixed semantically misleading check for $options (use isset() instead
...
of is_array() because it is always an array).
thanks to albert almeida.
2004-11-15 13:03:57 +00:00
messju
50c81af919
removed unused code
2004-11-08 08:26:16 +00:00
messju
d0929cf915
fixed nocache-handling with nested includes. there was a logical error
...
in the replacement of internal nocache-tags to dynamic content that
lead to false results with deeply nested includes or with
nocache-blocks inside nocache-blocks.
many thanks to Lars Jankowfsky for providing big help on reproducing
and tracking down this bug!
2004-10-02 18:03:25 +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
305bf858c1
switched from @count() to !empty() . this was pointed out a few times
...
by a few people with buggy error-handlers
2004-09-29 07:23:45 +00:00
messju
ed30e1ad20
added some property declarations
2004-09-29 07:16:17 +00:00
messju
3797857006
bumped up version number to reflect incompatibility in tempfiles of
...
'core' vs. 'internals'
2004-09-28 07:04:42 +00:00
messju
508e177b53
fixed $start_year when no value for the year in $time is given.
2004-09-24 14:37:02 +00:00
messju
a100412c5d
fixed handling of "inner"-attribute
2004-09-21 19:41:21 +00:00
messju
355fd8292e
fixed handling of object derefence inside backticks
2004-09-21 15:28:04 +00:00
mohrt
a2057caece
add <head></head> tags
2004-09-20 18:00:02 +00:00
boots
180c0c2847
Fixed \\r\\n line endings mistakenly introduced in last commit. d'oh.
2004-09-18 02:09:35 +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
messju
dc726ed4ff
removed notice from {debug}
...
thanks to Peter Billen for pointing this one out!
2004-09-11 18:52:13 +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
1a3c4eb890
tempnam() seems to be borken on many installation.
...
now we try tempnam first and if that fails we generate our own
temp-filename with uniqid()
2004-08-29 13:16:30 +00:00
mohrt
ac8ef507c6
dont use constant, use static var instead
2004-08-23 21:52:57 +00:00
mohrt
46b8afae2a
implement optional param to capitalize for digit behavior
2004-08-23 21:08:08 +00:00
mohrt
0c7933f6ed
another commit to capitalize, taking special chars into account
2004-08-23 20:28:47 +00:00
messju
1af7561db2
cleaned up attribute-handling in Smarty_Compiler::_compile_foreach_start()
2004-08-23 20:21:19 +00:00
mohrt
a50a53c0f5
fix capitalize modifier to not rely on buggy ucwords() func
2004-08-23 18:34:12 +00:00
mohrt
43c43029ec
update version
2004-08-20 13:53:04 +00:00
mohrt
e430d63e56
make time param work with negative timestamps, force year range to include
...
given date unless explicitly set
2004-08-20 13:48:46 +00:00
mohrt
a609ff1833
fix bug with fetch, passing user/pass in url did not work
2004-08-19 21:02:24 +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
5ee7d5a400
there was little flaw in smarty_function_html_radios() and
...
smarty_function_html_checkboxes():
the newly introduced assign-attribute was still added to the
tag-output as an extra-attribute.
fixed.
2004-07-23 15:42:41 +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