source: trunk/include/smarty/NEWS @ 2538

Last change on this file since 2538 was 2538, checked in by rvelices, 16 years ago
  • upgrade smarty to latest release 2.6.20
File size: 46.9 KB
Line 
1Version 2.6.20 (Aug 15th, 2008)
2-------------------------------
3
4- fix cache tag bug when multiple cache tags on a page (mankyd,
5  mohrt)
6- fix /e tag checking when using arrays with regex_replace
7  (mohrt)
8- fix that function results can be used with condition like "is even" in
9  {if} tags (U.Tews)
10- fix handling of non-empty <pre>-tags and empty <textarea>- and
11  <script>-tags (Spuerhund, messju)
12
13Version 2.6.19 (Feb 11th, 2008)
14-------------------------------
15
16- fix regex_replace allowing \0 in the search string (c960657,
17  monte)
18- add append feature to {capture} (jablko, monte)
19- fix when (un)registering filters with the same method name but different class
20  name (danilo)
21- fix calling registered objects' methods with an empty argument list
22  (marcello, messju)
23 
24Version 2.6.18 (Mar 7th, 2007)
25------------------------------
26
27- fix html_select_date separator when parts are missing (hayk,
28  monte)
29- fix broken detection of non-cached blocks introduced in 2.6.17
30  (messju)
31
32Version 2.6.17 (Mar 5th, 2007)
33------------------------------
34
35- fix php handling (monte, boots, danilo)
36- fix handling of plugin tags directly followed by an else tag (Fahr, danilo)
37- fix handling of $etc in the truncate modifier when $etc is longer
38  than $length (Sylvinus, messju)
39- fix handling of %I with mysql timestamps in the date_format modifier
40  (danilo, boots)
41- update smarty_core_write_file() and smarty_modifier_date_format() to better
42  recognize Windows (boots, danilo)
43- emulate %h, %n, %r, %R, %t in the date_format modifier on Windows
44  (danilo, boots)
45
46Version 2.6.16 (Dec 1st, 2006)
47------------------------------
48
49- fixed replacement bug in trimwhitespace output filter that was introduced
50  in the last release (Spuerhund, boots)
51
52Version 2.6.15 (Nov 30th, 2006)
53-------------------------------
54
55- change file writing semantics in smarty_core_write_file() to unlink() only
56  when rename() fails or a Windows system is detected (c960657, boots)
57- update debug.tpl to xhtml 1.1 compliance, fix javascript escaping in debug
58  output and apply a Smarty based color scheme (cybot, boots)
59- enhance reporting precision of debug_print_var modifier (cybot, boots)
60- make html_select_date work consistently with 0000-00-00 00:00:00 and
61  0000-00-00 inputs (cybot, boots)
62- fix wrong handling of insert's name attribute. (messju)
63- fix false replacement of "$t" inside double quotes (checat, messju)
64- added support for column headings and caption element to html_table and
65  updated the output to use thead/tbody elements (boots)
66- fixed ordering of replacements in trimwhitespace output filter (Getty, boots)
67- update mailto function plugin to work around a firefox/thunderbird
68  escaping bug (elijahlofgren, boots)
69- emulate %l in the date_format modifier on windows (boots)
70- fix handling of apostrophes in capitalize modifier (Alec Smecher, boots)
71
72Version 2.6.14 (May 28th, 2006)
73-------------------------------
74
75- fix compiler bug allowing php tags in secure templates
76  (boots,monte)
77- un-hide hidden xml open tags (boots)
78- fix handling of block-methods of registered objects (El Hombre Gris,
79  messju)
80
81Version 2.6.13 (March 9th, 2006)
82--------------------------------
83
84 - update regex_replace, removing possible use of "e" modifier
85
86Version 2.6.12 (Jan 18th, 2006)
87-------------------------------
88
89 - fix improper use of references in the compiler handling cached
90   attributes and in compiled code handling block plugins (messju)
91 - make Smarty::_read_file() work on latest php (messju)
92 - fixed improper tokenization of certain inline math expressions (boots)
93
94Version 2.6.11 (Dec 14, 2005)
95-----------------------------
96
97 - fixed code generation of non-cacheable blocks to play well with php's
98   "Alternative syntax for control structures" (kihara, messju)
99 - fix handling of multiple identical inserts in one display()-call (messju)
100 - replace {} string access with equivalent substr() to avoid E_STRICT
101   warnings in PHP 5.1 (boots)
102 - return valid reference in get_config_vars() when given var is
103   non-existant (Thomas Schulz, boots)
104 - plugin html_image: fix incorrect secure_dir error when
105   file doesn't exist (monte)
106 - plugin html_image: add path_prefix param (monte)
107 - add char_set parameter to escape modifier (Loading, monte)
108 - fix notice in debug security check (Drakla, monte)
109 - return valid reference in get_template_vars() when given var is
110   non-existant (monte)
111 - add escape type "urlpathinfo" to escape modifier (monte)
112
113Version 2.6.10 (Aug 5, 2005)
114----------------------------
115
116  - allow secure_dir to be a filename, not just
117    a directory name (monte)
118  - set debug.tpl as a secure_dir, not the entire
119    SMARTY_DIR (monte)
120  - fix proper escaping for literal strings in
121    Smarty_Compiler::_parse_var_props() (boots, messju)
122  - remove ambiguity for numeric values passed to smarty_make_timestamp()
123    (and thus the date_format modifier). numeric values are treated as
124    timestamps now. (andreas, messju)
125  - add passthru attribute feature to html_select_date (Sedgar,
126    monte)
127  - add "middle" parameter to truncate (monte)
128  - make form input label ids optional (monte)
129  - add error message for empty if/elseif statements (eykanal,
130    monte)
131  - cast selected value to string for comparison in html_radios
132    (Exeption, monte)
133  - updated html_select_date's year_as_text-feature to be xhtml compliant
134    (Mark West, messju)
135  - fix handling of selected month html_select_date (Yuri Weseman, messju)
136
137Version 2.6.9 (Mar 31, 2005)
138----------------------------
139
140  - disallow variable function calls in {if} statements (messju, monte)
141  - disallow variable function calls in {math} equations (messju, monte)
142
143Version 2.6.8 (Mar 21, 2005)
144----------------------------
145
146  - remove e-modifier from regex_replace modifier (messju)
147  - remove cast of object to array in foreach's from-attribute (messju)
148  - add "null" as a valid token for {if} when security is enabled (messju)
149  - add javascript_charcode encoding option to mailto function
150    (monte)
151  - add ids to html_radios labels (monte, menulis)
152  - fix handling of strip-tags with non-default delimiters (Mark West, messju)
153
154Version 2.6.7 (Feb 3, 2005)
155---------------------------
156
157  - fix handling of hashed opening php-tags inside strip-blocks (messju)
158  - removed border tag from html_image function (monte)
159  - change escape:url use rawurlencode() instead of urlencode() (messju)
160  - make $smarty.const.FOO compile to "FOO", and not to "constant('foo')".
161    this is less code and a little faster execution. note that undefined
162    constants are now displayed as the constant's name. (messju)
163  - make block functions and registered objects' block methods use a
164    local variable for block_content instead of a property of $smarty (messju)
165  - fix escaping in the generated code that calls smarty_core_load_plugins
166    (jes5199, messju)
167  - fix invalid HTML issue with popup (Stefanos Harhalakis,
168    Monte)
169  - fixed {popup} to properly handle inarray and function parameters and added
170    support for mouseoff and followmouse options (boots)
171
172Version 2.6.6 (Oct 13, 2004)
173----------------------------
174
175  - fixed nocache-handling with nested includes (Lars Jankowfsky, messju)
176  - moved /libs/core to /libs/internals (boots)
177  - fixed more parsing problems (messju)
178
179Version 2.6.5 (Sept 13, 2004)
180-----------------------------
181
182  - fixed some parsing problems with object calls introduced
183    in 2.6.4 (Monte)
184  - add $smarty->security_settings['ALLOW_CONSTANTS']. note: this
185    defaults to false which means you have to allow them explicitly
186    in your secured templates from now on! (messju)
187
188Version 2.6.4 (Sept 7, 2004)
189----------------------------
190
191  - add $smarty.ldelim and $smarty.rdelim to smarty special var (Monte)
192  - fall back to old uniqid()-behaviour when tempnam() fails in
193    core.write_file.php (messju)
194  - fix capitalize modifier, don't rely on buggy ucwords (Monte)
195  - make html_select_date work with negative timestamps, also
196    force year range to include given date unless explicitly
197    set (Garo, Monte)
198  - fix bug with {fetch}, passing user/pass in url did not work
199    (Monte)
200  - fix occasional wrong error messages on mismatched tags when
201    {else}, {elseif}, {foreachelse} or {sectionelse} is involved (messju)
202  - fix handling of methods arguments (messju, Manfred Wischin)
203  - remove touch() call that made the compiled-template's timestamp the
204    same as the source-template's one. (messju)
205  - add assign attribute to html_checkboxes and html_radios
206    (pcg, Monte)
207  - remove non-xhtml conformant tag from mailto function
208    (tacker, Monte)
209  - handle date_format codes %e, %T and %D for windows (tip,
210    Monte)
211  - fix unnecessary call to smarty_core_get_include_path() inside
212    Smarty::_get_auto_filename() (c960657, messju)
213  - add error-messages when anything else than an identifier is passed
214    to foreach's key- or item-attribute (messju)
215  - fix handling of digits inside tagnames (messju)
216  - fix escaping of backslashes in Smarty_Compiler::_quote_replace() (messju)
217
218Version 2.6.3 (June 16, 2004)
219-----------------------------
220
221  - added escapement of '</' to '<\/' in escape:javascript
222    modifier (c960657, Monte)
223  - added obfuscation of protocol-string in {mailto} when using hex-
224    encoding (bharat, messju)
225  - enhanced auto-generated filenames for templates_c and cache (messju)
226  - add 'nonstd' to escape modifier for escaping non-std chars,
227    such as ms doc quote (Monte)
228  - adjusted textformat to not output wrap chars after last para
229    (Monte)
230  - use tempnam() instead of unqid() to create better temporary files in
231    smarty_core_write_file() (xces, messju)
232  - add 'mail' to escape modifier for safe display of e-mail
233    addresses (Monte)
234  - add cycle function attribute "reset" to english docs (Monte)
235  - enhanced support of numeric constants as variable-expressions (messju)
236  - add case decentity to smarty_modifier_escape() (Konstantin A. Pelepelin,
237    messju)
238  - make smarty_core_write_compiled_include() php5-aware (messju)
239  - removed unused functionality to load a subset of lines from a file (messju)
240  - fix is_secure() should only check if a file is_readable, not if
241    the directory where it is in is readable (sagi, messju)
242  - fix problem displaying debug console when $default_resource_type
243    is not "file:" (c960657, Monte)
244  - fix permission handling with security and config_load (messju)
245  - removed '.' from the list of default template locations in
246    _parse_resource_name() (messju)
247  - fix avoid warning with template_exists() on an absolute paths (messju)
248  - fix parameters passed to resource's secure()-function (messju)
249  - fix handling of integer values like width and delay im
250    smarty_function_popup() (messju)
251
252Version 2.6.2 (Feb 17, 2004)
253----------------------------
254
255  - fix allow empty years, months and days in html_select_date's
256    time-attribute (messju)
257  - fix YES and NO should not be booleanized inside triple-quotes in a
258    config-file (messju)
259  - fix accidently slurped line following a triple-quoted value in a
260    config-file (messju)
261  - change default for use_sub_dirs to false (messju)
262  - fix quoting of values in smarty_function_popup() (messju)
263  - fix handling of hidden sections in Config_File (messju)
264  - add handling of resources for {config_load} (messju)
265  - fix bug when using arrays with tr_attr and td_attr in {html_table} (messju)
266  - add unit testing to cvs core (Monte)
267
268Version 2.6.1 (Jan 16, 2004)
269----------------------------
270
271  - rename $smarty->tpl_error_reporting to $smarty->error_reporting
272    (messju)
273  - fix interpretation of $smarty->security in {html_image} (messju)
274  - add caching of requested paths to _assemble_plugin_filepath() (messju)
275  - fix handling of comments inside {php}- and {literal}-blocks (messju)
276  - fix bug handling triple-quotes in config-files (BRDude, messju)
277  - change default of request_use_auto_globals to true - $_SERVER is
278    now preferred over $HTTP_SERVER_VARS (messju)
279  - re-add support for $SCRIPT_NAME (messju)
280  - reactivate $smarty->default_modifiers (messju)
281  - add cookie persistance to debug console (Monte)
282  - allow single-digit days and months without smarty_make_timestamp()
283    in html_select_date (messju)
284  - fix headers sent erroneously with cache_modified_check and fetch()
285    (wphilips, messju)
286  - fix config_file path bug (Marc Cabadas, Monte)
287  - fix 'is even by' and 'is odd by' logic (Monte)
288  - add day_empty, month_empty, year_empty and all_empty attributes to
289    html_select_date (messju)
290  - add table of explanation for {if} qualifiers in docs (boots)
291  - fix bug when comparing array-keys to "selected" in html_options
292    and html_checkboxes (messju)
293  - add better checks for correctly nested tags when compiling (messju)
294  - remove {$SCRIPT_NAME}. use {$smarty.server.SCRIPT_NAME} instead (messju)
295  - remove $global_assign. assign global variables explicitly instead (messju)
296  - fix example for count_characters in docs (boots)
297  - add section new basic syntax section "Escaping Smarty Parsing" in docs (boots)
298  - fix error handler call in config_load (boots)
299  - remove warning in debug_print_var on php-resources (messju)
300  - move function.assign.php to compiler.assign.php (messju)
301  - add property $tpl_error_reporting (messju)
302  - remove property $undefined. "null" is used literally instead (messju)
303
304Version 2.6.0 (Nov 19, 2003)
305----------------------------
306
307  - move Smarty::quote_replace() to Smarty_Compiler::_quote_replace() (messju)
308  - remove import of of attributes of {include_php} to php's namespace.
309    use $params[name] instead (messju)
310
311Version 2.6.0-RC3 (Nov 13, 2003)
312--------------------------------
313
314  - fix handling of $var.key inside [] (messju)
315  - fix handling of assign inside {insert}-tags (messju)
316  - fix handling if [...] inside triple-quotes in config-files (messju)
317  - fix handling of simple-math-operators inside modifiers (Dominik, messju)
318  - fix handling of trailing-slashes in open_basedir in
319    smarty_core_create_dir_structure() (packman, messju)
320
321Version 2.6.0-RC2 (Oct 8, 2003)
322-------------------------------
323
324  - apply modifiers only once to section-loop and foreach-from attrs (messju)
325  - remove use of _smarty_cached_paths-files (messju)
326  - remove Smarty::_plugin_implementation_exists() - use is_callable() (messju)
327  - ignore {strip}/{/strip) inside {strip}-blocks (messju)
328  - fixed removal of leading/trailing newlines in {strip}-blocks (messju)
329  - fixed proper escaping of " and ' with escape:javascript (messju)
330  - fixed bug in traversal of $smarty->plugins_dir-array. now the
331    first matching plugin is taken (messju)
332  - moved {strip} back into the compiler (messju)
333  - fixed config_load: handling of section-attribute and use of
334    multiple config-files in one template (atu, messju)
335
336Version 2.6.0-RC1 (August 11, 2003)
337-----------------------------------
338
339  - fixed status-header for cache_modified_check under cgi-sapi (messju)
340  - added optional parameter $cache_attrs to register_function() and
341    register_block(). $cache_attrs is an array containing attribute-
342    names that should be cached on calls to functions that have
343    $cacheable set to false. (messju)
344  - enabled registration of class-methods as callbacks for the register_*-
345    functions (use: array('classname', 'method_name')) as callback) (messju)
346  - added filepath caching (Monte)
347  - added optional assign-attribute to {capture}-tag (messju)
348  - added $cacheable-parameter to register_compiler_function() (messju)
349  - added $cacheable-parameter with default=true to register_function()
350    and register_block() (messju)
351  - add math speedup to core (Dominik, Monte)
352  - fix newlines for tags without template output (Monte)
353  - added config-option "request_use_auto_globals" to make auto-globals be
354    used as request vars instead of HTTP_*_VARS (messju)
355  - speed up config_load, simplify compiling (Monte)
356  - added block-methods for registered objects (Bharat Mediratta, messju)
357  - ignore one char resource names like c:foo.tpl (Monte)
358  - added default_resource_type feature (Monte)
359  - fix bug where config file starts with hidden section (boots, Monte)
360  - add discrete error checking pertaining to $cache_dir
361    and $compile_dir, their existance and writability (Monte)
362  - fixed behaviour of start=... for {counter} (messju)
363  - fixed assign for {counter} (messju)
364  - added params vdir, hdir and inner to html_table to allow looping
365    over the data in various directions (messju)
366  - allow spaces in literal tags (Paul Lockaby, Monte)
367  - speed up compiled templates, hardcode plugin filepaths
368    instead of dynamically calculate at runtime. (Monte)
369  - abstract many core components from Smarty.class.php,
370    speeding up core class instantiation (Monte)
371  - fixed bug in _create_dir_structure() when used with open_basedir-
372    restriction and relative paths (messju)
373  - use DIRECTORY_SEPARATOR exclusively, keep DIR_SEP for BC (Monte)
374  - changed "link" to "href" in html_image. "link" is still working
375    but deprecated (messju)
376  - html_image always renders an alt-tag now (default alt="") (messju)
377  - fixed assign attribute for multiple counters (messju)
378  - added simple math operators to variables (Monte)
379  - enabled array(&$obj. 'source', 'timestamp', 'secure', 'trusted')
380    as callback for register_resource() (messju);
381  - enabled array(&$obj, 'method') as callback for
382    $default_template_handler_func (messju)
383  - remove unnecessary close/open tags from compiled templates
384    (Monte)
385  - fixed errornous creation of '//' in image_path in html_image (messju)
386  - fix escapement of special chars for key vals in debug
387    console (Monte)
388  - fixed debug timing logic for config_load (Tom Sommer, Monte)
389  - all in-code doc comments converted to phpDocumentor format (Greg)
390  - moved strip from smarty core to plugin (Monte)
391  - moved config_load from smarty core to plugin (Monte)
392  - added &$repeat-parameter to block-functions (messju)
393  - enabled hex-constants in function.math.php (messju)
394  - enabled hex-constants (0x...) as function-attributes, inside if-statements
395    and as modifier-parameters (messju)
396  - fixed bug with passing $smarty as reference in Smarty.compiler.class
397    (messju)
398  - corrected output with {strip} and PHP tag newlines (Monte)
399  - added possibility to register function-callbacks as "array(&$obj, 'method)"
400    this affects register_function(), -block, -compiler_function, -modifier,
401    -prefilter, -postfilter, -outputfilter-functions() and $cache_handler_func
402    (messju)
403  - added <labels> to html_checkboxes and html_radios (Philippe, messju)
404  - added "labels"-options to turn off labels in html_checkboxes and _radios
405    (messju)
406
407Version 2.5.0 (April 11, 2003)
408------------------------------
409
410   - fixed bug with default modifier when passing integer 0
411     (Monte)
412   - change backtic syntax from $`foo` to `$foo` (Monte)
413   - recognize $foo[][] syntax inside embedded quotes without
414     backtics (Monte)
415   - name=123 is passed as an integer (not a string) to plugins now (messju)
416   - $length is now propagated to sub-values in debug_print_var (messju)
417
418Version 2.5.0-RC2 (March 26, 2003)
419----------------------------------
420
421    - made clear_cache() ignore compile_id, when clearing cache-groups (this
422      is when no $tpl_file is supplied) (messju)
423    - made onmouseout XHTML-compliant in function.popup.php (messju)
424    - applied local-var-naming-scheme to fetch() (messju)
425    - renamed $localvars to $_localvars in cache-file-handling-functions,
426      added _get_auto_id()-function (messju)
427    - swapped compile_id and cache_id in read_cache_file and write_cache_file
428      (messju)
429    - reverted patch for cache-file-handling (messju)
430    - made html_radios and html_checkboxes accept "selected" instead
431      of "checked" optionally. (messju)
432    - made compile_id ignored in clear_cache, made order of
433      auto_file_name $cache_id.$compile_id again, applied the the new
434      variable-naming-scheme for cache_file_handing functions (messju)
435    - removed notice of undefined var in _rm_auto() (messju)
436    - added warning message when an array is passed as
437      the "checked" value of html_radios (Monte)
438    - fixed errormessage in _compile_smarty_ref() (messju)
439    - updated docs for html_image "name" -> "file" (messju)
440    - fixed bug with html_options-optgroups (Nichlas Löfdahl, messju)
441    - cleaned up calls to readdir() (messju)
442    - fixed bug with passing multiple modifiers to a parameter
443      (Monte)
444    - updated docs for html_checkboxes, html_options and html_radios (messju)
445    - fixed wrong default "name" attribute for html_options (messju)
446    - html_checkboxes now expect the options as attribute "options" instead
447      of "checkboxes. html_radios expect "options" instead of "radios".
448      cleaned up indentiation (messju)
449    - fixed too greedy str_replace in trimwhitespace outputfilter (messju)
450    - html_checkboxes and html_radios passthru all unknown paramters now
451      additionally their output is now XHTML compliant (messju)
452    - html_options passthru all unknown paramters now (messju)
453    - fix link functionality of html_image, also make
454      output XHTML compatible (Hinrich Donner, Monte)
455    - append "@" to default modifier vars/args
456      supress possible warnings (Monte)
457    - fix problem with escaped double quotes (Monte)
458    - fix html_radios to not return an array (Monte)
459    - fixed length in modifier.truncate.php (messju)
460    - fixed handling of '$'-signs in trimwhitespace outputfilter (messju)
461    - fix bug that makes config files recompile every time
462      (Nagger, Monte)
463    - add dpi functionality to html_image, change "name"
464      parameter to "file" (Thomas Shulz, Monte)
465    - fix height/width parameter index in html_image (Gerard,
466      Monte)
467    - get rid of unsetting name and script attributes
468      to insert tag (Thomas Schulz, Monte)
469    - changed argument order of string_format modifier back,
470      was right in the first place (Monte)
471
472Version 2.5.0-RC1 (March 5, 2003)
473---------------------------------
474
475    - fixed notice in popup function (Nagger, Monte)
476    - fix "once" var compiling for include_php (Monte)
477    - added nl2br modifier to distribution (Monte)
478    - added html_image to distribution (Monte)
479    - added cat modifier to distribution (Monte)
480    - added html_table to distribution (Monte)
481    - added << >> <> support to if statments (SMK, Monte)
482    - fix _assign_smarty_interface to not overwrite keys
483      other than 'request' (Jerome Poudevigne, Monte)
484    - added html_checkboxes to distribution (Christopher Kvarme, Monte)
485    - added html_radios to distribution (Christopher Kvarme, Monte)
486    - fixed string_format modifier args (wrong order) (Paul
487      Lockaby, Monte)
488    - use tmp file for file writes, avoid file lock race (Monte)
489    - support syntax "$`smarty.config.foo`.tpl" for embedded
490      vars in quotes, and allow full dollar var syntax (Monte)
491    - add $smarty.config.varname variable for accessing config vars (Paul
492      Lockaby, Monte)
493    - silence PHP warnings in function.fetch.php (Eduardo,
494      Monte)
495    - added get_config_vars(), same basic functionality as
496      get_template_vars() (Monte)
497    - update get_template_vars() to be able to get
498      individual vars (Monte)
499    - fix minor logic in _fetch_template_info (Dennis Gearon,
500      Monte)
501    - fix cache groups with compile_id set (Monte)
502    - add support for merging appended vars (messju, Monte)
503    - allow null as function attribute value
504      (André Rabold, Monte)
505    - support $foo->bar[index] syntax (Monte)
506    - add get_registered_object function (messju, Monte)
507    - treat unrecognized param attribute syntax as string (Monte)
508    - support $smarty.const.$foo syntax (messju, Monte)
509    - remove E_NOTICE warnings from debug.tpl,
510      escape modifier (Kanstantin, Monte)
511    - don't count non-ascii chars in count_words modifier
512      (Kanstantin, Monte)
513    - clean up param calls to _parse_var and _parse_attrs (Monte)
514    - define $template_source var, elude possible warning
515      (Monte)
516    - fix syntax problem with evaluating PHP constants (Monte)
517    - add @ and === as valid if statement tokens (Monte)
518    - enable error messages for config_load errors,
519      use $this->config_class for loading class name (Monte)
520    - fix html_options to not escape already escaped entities (Monte)
521    - send Last-Modified header on cache creation (Monte)
522    - check strict syntax of function attributes (Monte)
523    - dropped support for modifers on object parameters,
524      added support for objects as modifier parameters (Monte)
525    - fixed bug with decimal numbers in if statements (Monte)
526
527Version 2.4.2 (Feb 11, 2003)
528----------------------------
529    - support embedded variables in objects (Monte)
530    - fix bug with objects with no properties (M Mohr, Monte)
531    - support full dollar var syntax in quoted text (Monte)
532    - fixed bug in $smarty.const.FOO introduced in 2.4.1 (M
533      Mohr, Monte)
534
535Version 2.4.1 (Feb 6, 2003)
536---------------------------
537
538    - ignore case in IF statements (Rainer Collet, Monte)
539    - treat undefined constants as null (Ferdinand Beyer, Monte)
540    - fix problem with inserts and nested fetches
541      (Rainer Collet, Monte)
542    - added support for passing params to include_php
543      (Tim Riley, Monte)
544    - added support for math operators in if statements (Monte)
545    - added support for $foo->bar[$x].blah syntax (Monte)
546
547Version 2.4.0 (Feb 2, 2003)
548---------------------------
549
550    - fix known problems with php tag handling in templates
551      (recursion, echoing xml tags) (Monte)
552    - add support for object registration (Monte)
553    - add debug template to secure_dir, add template_dir
554      to secure_dir by default (Ferdinand Beyer, Monte)
555    - added support for assigned object access (Monte)
556    - fixed bug with directories named '0' (Frank Bauer, Monte)
557    - add javascript parameter to escape modifier (Monte)
558    - added calling function line numbers to syntax error
559      messages in compiler (Monte)
560    - added support for modifiers to function calls (Monte)
561    - support return value for custom functions
562      instead of echoing (but echo still works) (Monte)
563    - added direct access to constants
564      via $smarty.const.FOO (Monte)
565    - added support for passing modifiers
566      to static values (Monte)
567    - fix up regex code in compiler, more accurate and
568      maintainable (Monte)
569    - added day_value_format to html_select_date (Marcus
570      Bointon, Monte)
571    - assigned variables are no longer in global
572      namespace, saving extract() calls and speeding
573      up fetch() and display() linearly with no. of
574      assigned variables (Monte)
575    - added trimwhitespace output filter to dist. (Monte)
576    - fix popup function to allow newlines in text (Monte)
577    - escape html entities in html_options (Monte)
578    - fixed bug with label for html_options (Monte)
579    - added config_load API function (Monte)
580    - added caching to config file loading (Monte)
581    - added "extra" parameter to mailto function (Monte,
582      Massimiliano Perantoni)
583    - added mailto plugin to dist.  (Monte)
584
585Version 2.3.1 (Nov 19, 2002)
586----------------------------
587
588    - added optgroup support to html_options (Monte, Robert
589      Amos)
590    - set mtime on compile files so they match source
591      files (Monte, Peter Bowen)
592    - added proper support for open_basedir setting
593      (Monte, Alessandro Astarita)
594    - added strip variable modifier, updated docs (Monte)
595    - fixed access to $smarty.x variables as arrays. (Andrei)
596    - fixed errors with example setup docs (Monte, Matthew
597      Hagerty)
598    - added textformat block function (Monte)
599
600Version 2.3.0 (Aug 7, 2002)
601---------------------------
602
603    - added assign_by_ref() and append_by_ref() functions
604      (Bob Silva, Monte)
605    - changed default warning type for plugin errors from
606      E_USER_WARNING to E_USER_ERROR (Monte)
607    - added $all_extra, $hour_extra, $minute_extra,
608      $second_extra and $meridian_extra parameters to
609      html_select_time function (Rainer Collet, Monte)
610    - update debug console to print objects (Simon Willison,
611      Monte)
612    - fix Config_File class to not error when there are no
613      sections (Peter Kmet, Monte)
614    - add default modifier logic (Monte)
615    - updated popup_init to be xhtml compliant (Tom Oram, Monte)
616    - fix filename bug with windows (Gary Loescher, Monte)
617    - add ability to supply expire time in seconds when clearing
618      cache or compile files (Monte)
619    - add {debug} plugin to distribution (Monte)
620    - fixed bug with insert tags, loading from "script" attribute
621      when caching is enabled (Monte)
622    - fix bug with debug_tpl file path with Windows (.SMK., Monte)
623    - fix append() function with string/array problem (Monte)
624
625Version 2.2.0 (July 11, 2002)
626-----------------------------
627
628    - make debug.tpl work with any delimiter (Monte)
629    - change logic in assign() and append() to test var names
630      against != '' instead of empty() (Monte)
631    - fix PHP notice in append() function (Monte)
632    - allow $plugins_dir to be an array of directories
633      (Andreas Kossmeier, Monte)
634    - move debug.tpl to SMARTY_DIR, add to constructor (Monte)
635    - fixed warning message in function.assign_debug_info (Monte)
636    - fixed $template_dir, $compile_dir, $cache_dir, $config_dir,
637      $plugin_dir to respect include_path (Monte)
638    - fixed warning message with output filter array (Monte)
639    - add optional 2nd parameter to date_format, used as
640      the default date if the passed date is empty (Monte)
641    - gave $reset a default value in cycle plugin (Monte)
642    - fixed warnings with html_select_date and timestamp
643      functions (Monte)
644    - added support for sub directory exlusion format (Monte)
645    - added support for grouping by cache_id, compile_id
646      and segments thereof (Monte)
647    - changed cache and compile files to human readable
648      format (Monte)
649    - remove overlib.js file from distribution (Monte)
650    - fixed bug with 304 Not Modified response sending
651      content (Monte)
652    - fixed cycle function to respect delimiter after
653      initial setting (Monte)
654    - update $GLOBALS references to work properly with
655      track_globals settings (Michal Prinke, Monte)
656    - fixed bug in math function with call to assign
657      (Grigory V. Kareev, Monte)
658    - optimized for loops with count() function calls (Monte)
659    - add month_value_format attribute to html_select_date
660      plugin (Gary Loescher, Monte)
661    - made it possible to use simple variables inside [] for
662      indexing. (Andrei)
663    - added "once" attribute to {include_php}. (Monte)
664
665Version 2.1.1
666-------------
667    - added cycle function. (Monte)
668    - fixed bug with resource testing, and include_path. (Monte)
669    - fixed a bug with register_outputfilter function. (Monte)
670
671Version 2.1.0
672-------------
673
674    - introduced output filters. (Andrei)
675    - changed the way filters are loaded, added load_filter()
676      API function and $autoload_filters variable. (Andrei)
677    - added caching logic for expire times per cache file
678      (Norbert Rocher, Monte)
679    - fixed html_select_date when field separator is "/"
680      (Roberto Berto, Monte)
681    - added YYYY-MM-DD format support to html_select_date
682      (Jan Rosier, Monte)
683    - fixed cache_lifetime logic bug, also made -1 = never
684      expire (Monte)
685    - fixed directory separator issue for Windows. (Andrei)
686    - added ability to use simple variables as array indices or
687      object properties. (Andrei)
688    - added ability to unregister pre/postfilters plugins at
689      runtime. (Andrei)
690    - added 'htmlall' attribute to escape modifier. (Monte)
691    - added template_exists() API function. (Andrei)
692    - fixed a problem with using dynamic values for 'file'
693      attribute of {include_php} tag. (Andrei)
694    - added $smarty.template variable. (Andrei)
695    - fixed several plugins that would not work if the plugin
696      directory was not the default one. (Andrei)
697    - implemented support for block functions. (Andrei)
698    - made it possible to assign variables in pre/postfilter
699      plugins. (Andrei)
700
701Version 2.0.1
702-------------
703    - rename plugin .make_timestamp.php to shared.make_timestamp.php.
704      (Monte)
705    - changed crc32() generated values, replace '-' with 'N'. (Monte)
706    - added support for +/- N syntax in html_select_date year values.
707      (Monte)
708    - fixed behavior of inserts with script attribute. (Andrei)
709    - fixed bug with $smarty.cookies and $smarty.server. (Andrei)
710    - wordwrap and indent are missing from 2.0 release, now fixed.
711      (Monte)
712    - removed show_info_header and show_info_include variables. (Monte)
713
714Version 2.0.0
715-------------
716    - added "eval" function plugin for evaluating variables as
717      templates. (Monte)
718    - removed $tpl_file_ext class variable, no longer used. (Monte)
719    - added "hex" and "hexentity" escape types to escape modifier.
720      (Monte)
721    - removed dependency on PEAR. (Andrei)
722    - update popup_init to accept src attribute. (Monte, Duncan Forrest)
723    - implemented several optimizations, speeding up Smarty
724      significantly in most cases. (Andrei,Monte)
725    - implemented plugin architecture. (Andrei)
726    - added wordwrap and indent modifiers. (Monte)
727    - added support for 'If-Modified-Since' headers for cached content.
728      (Monte)
729    - removed insert_tag_check class variable, no longer needed. (Monte)
730    - optimized cache fetches by scanning for insert tags only if they
731      exist. (Monte)
732    - fixed bugs in overlib. (Monte, Duncan Forrest)
733    - fixed a problem with compile_id usage. (Andrei)
734    - fixed problem with using assigned vars with {include_php ...}
735      filepath. (Monte)
736
737Version 1.5.2
738-------------
739    - added Smarty object as fifth argument for template resource functions.
740      (Monte)
741    - fixed a bug with incorrectly combined cache and compile id in
742      clear_cache(). (Andrei)
743    - fixed bug in smarty_make_timestamp introduced in PHP 4.1.0. (Monte)
744    - fixed bug with cached insert debug timing. (Monte)
745    - added 'script' attribute to {insert..} which specifies the script that
746      the insert function can be found in. (Andrei)
747    - added default template function handler. (Monte)
748
749Version 1.5.1
750-------------
751    - removed error message from the generic _read_file() method, the caller
752      should take care of that. (Andrei)
753    - fixed a bug with incorrectly combined cache and compile id. (Andrei)
754
755Version 1.5.0
756-------------
757    - added include_php built-in function, documented. (Monte)
758    - added trusted_dir functionality, documented. (Monte)
759    - consolidated secure_dir tests to one function. (Monte)
760    - prepended _smarty_ to variable names in fetch() class function to avoid
761      namespace conflicts. (Monte)
762    - introduced $compile_id class variable that can be used to set persistent
763      compile identifier across multiple display calls, documented. (Andrei)
764    - fixed bug with concatenated null cache and compile identifiers. (Andrei)
765    - added $smarty.section.* syntax for accessing section properties,
766      documented. (Andrei)
767    - added custom cache handling function ability, documented. (Monte)
768    - added assign attribute to include, include_php, insert, fetch, math, and
769      counter functions, documented. (Monte)
770    - fixed bug with fetch testing for local file when http address. (Monte)
771    - fixed bug with counter and skipval setting. (Monte)
772    - made {config_load ...} merge globals from each config file only once per
773      scope, thus avoiding several problems. (Andrei)
774    - added {foreach ...} tag that can be used to iterate through
775      non-sequential and associative arrays, documented. (Andrei)
776    - speeded up section property access a bit. (Andrei)
777    - removed $smarty variable from storage used by normal template variables,
778      to prevent any problems. (Andrei)
779    - fixed a bug that could cause parse error with quotes inside literal
780      blocks. (Andrei, Alexander Belonosov)
781    - added 'field_array' attribute to html_select_time function, documented.
782      (Andrei, Michael Caplan)
783    - documented {section} "max" attribute. (Monte)
784    - fixed notice message in Smarty_Compiler.class.php. (Monte)
785    - fixed bug with clear_cache introduced in 1.4.6, third parameter should
786      default to null. (Monte)
787    - updated Config_File class to support '\' path separator in OS/2. (Monte,
788      Francesco Cipriani)
789    - removed secure_ext setting (not used). (Monte)
790    - made cache reading process more efficient. (Monte)
791    - fixed bug, is_cached() now supports new 1.4.6 caching behavior. (Monte)
792    - update FAQ with mailing list Reply-To header FAQ. (Monte)
793    - supress error messages for fopen(), fix cache to regenerate if cache
794      file is not available (i.e. cluster race condition). (Monte)
795    - added index key example to QUICKSTART guide. (Monte)
796
797Version 1.4.6
798-------------
799    - fixed bug with {assign ...} when passing an empty value. (Monte)
800    - add more warning message fixes. (Monte, Tara Johnson)
801    - documentation updates. (Monte)
802    - update fetch function to give proper warning when fetching a non-readable
803      or non-existant file. (Monte)
804    - fixed problem with newline at the end of included templates (Monte, Andrei)
805    - added feature to regenerate cache if compile_check is enabled and an
806      involved template or config file gets modified. (Monte)
807    - added DEBUG execution times to included files: REQUIRES updated debug.tpl
808      file! (Monte)
809    - added support for hidden config variables that cannot be read by
810      templates. (Andrei)
811    - added execution time to DEBUG console, total and inserts. (Monte)
812    - fixed bug where DEBUG console would not appear with cached content. (Monte)
813    - added support for postfilter functions that are applied to compiled
814      template right after compilation. (Andrei)
815    - fixed the name of clear_compile_tpl() API function to clear_compiled_tpl.
816      (Andrei)
817    - added fix for removing comments so that the line numbers are reported
818      correctly in case of errors. (patch from Anders Janson)
819    - made html_options output xhtml compatible code. (Monte, Arnaud Limbourg)
820
821Version 1.4.5
822-------------
823    - update FAQ with index of questions at the top
824    - update overlib to 3.50, adjust addon code so that the overlib.js
825      file isn't modified, and not using the mini one. (Monte)
826    - added many more options to html_select_date. (Alexander Skwar, Andrei)
827    - added support for generating different compiled templates from the same
828      source template. (Hans-Peter Oeri, Andrei)
829    - modified Smarty to pass itself to insert functions as the second
830      parameter. (Andrei)
831    - modified Smarty to pass itself to prefilter functions as the second
832      parameter. (Andrei)
833    - fixed syntax error when including a non-existant template with security
834      enabled. (Monte)
835    - fixed comments handling to allow commenting out template blocks. (Andrei)
836    - implemented named capture buffers, with results accessible via
837      $smarty.capture.<name>. (Andrei)
838    - added ability to index arrays directly by numbers. (Andrei)
839    - fixed bug with SMARTY_DIR not prepended to Config_File include. (Monte)
840
841Version 1.4.4
842-------------
843    - fixed problem with including insecure templates with security enabled.
844      (Monte)
845    - numerous documentation updates. (Monte)
846    - added ENT_QUOTES to escapement of html. (Monte, Sam Beckwith)
847    - implemented access to request variables via auto-assigned $smarty
848      template variable. (Andrei)
849    - fixed a bug with parsing function arguments inside {if} tags if a comma
850      was present. (Andrei)
851    - updated debug console with config file vars. (Monte)
852    - added SMARTY_DIR constant as an alternative to relying on include_path.
853      (Monte)
854    - added popup_init and popup functions (requires overlib.js). (Monte)
855    - updated debug console with config file vars. (Monte)
856    - added debugging url control. (Monte)
857    - added 'quotes' type to escape modifier. (Monte, Mike Krus)
858    - added 'total' and 'iteration' section properties. (Andrei)
859    - added 'start', 'max', and 'step' section attributes/properties. (Andrei)
860    - fixed a bug with security checking of functions inside {if} tags.
861      (Andrei)
862    - fixed a bug in Config_File that would incorrectly booleanize values that
863      weren't really booleans. (Andrei)
864
865Version 1.4.3
866-------------
867    - added regex_replace modifier, documented. (Monte)
868    - added debugging console feature and custom function assign_debug_info,
869      documented. (Monte)
870    - added 'scope' attribute for {config_load}, 'global' is now deprecated but
871      is still supported. (Andrei)
872    - reduced template symbol table pollution by moving config array into the
873      class itself. (Andrei)
874    - fixed a bug with passing quoted arguments to modifiers inside {if}
875      statements. (Andrei, Sam Beckwith)
876    - added security features for third party template editing, documented
877      (Monte)
878    - added assign custom function, documented. (Monte)
879    - fixed bug with template header using version instead of _version. (Monte)
880    - fixed a problem with putting $ followed by numbers inside {strip} and
881      {/strip} tags. (Andrei)
882    - fixed Config_File class to allow empty config paths (defaults to current
883      directory). (Andrei)
884
885Version 1.4.2
886-------------
887    - move $version to internal variable, remove from docs. (Monte)
888    - cleaned up compiled templates global scope by moving some variables into
889      the class itself. (Andrei)
890    - fixed a bug that would not allow referring to a section in the including
891      file from the included file. (Andrei)
892    - configs directory missing from 1.4.1 release, added back in. (Monte)
893    - added windows include_path setup instructions to FAQ & QUICKSTART.
894      (Monte)
895
896Version 1.4.1
897-------------
898    - fix LOCK_EX logic for all windows platforms (Monte)
899    - fixed indexing by section properties with the new syntax. (Andrei)
900    - updated Smarty to use absolute paths when requiring/including Smarty
901      components. (Andrei, John Lim)
902
903Version 1.4.0
904-------------
905    - added {capture}{/capture} function, documented (Monte)
906    - added {counter} function, documented (Monte)
907
908Version 1.4.0b2
909---------------
910    - fixed issue in Config_File.class with referencing blank sections (Andrei)
911    - fixed problem with passing variables to included files (Andrei)
912    - fixed resource path recognition for windows (Monte)
913
914Version 1.4.0b1
915---------------
916    - added "componentized templates" tip into documentation (Monte)
917    - added {php}{/php} tags for embedding php code into templates (Monte)
918    - changed default value of $show_info_header to false (Monte)
919    - implemented '->' syntax for accessing properties of objects passed to the
920      template. (Andrei)
921    - allowed custom functions to receive Smarty object as the second
922      parameter; this can be used to dynamically change template variables, for
923      example. (Andrei)
924    - added custom compiler functions support, register_compiler_function() and
925      unregister_compiler_function() API functions. (Andrei, Ivo Jansch).
926    - updated GLOBAL_ASSIGN to take SCRIPT_NAME from HTTP_SERVER_VARS
927      instead of global variable. You can also assign several variables
928      in one shot with an array. (Monte, Roman Neuhauser)
929    - added template prefilters, register_prefilter() and
930      unregister_prefilter() API functions. (Monte)
931    - added RELEASE_NOTES file to distribution. (Monte)
932    - moved CREDITS out of manual into its own file. (Monte)
933    - added register_resource() and unregister_resource() API functions. (Monte)
934    - changed the syntax of indexing template variables, thus supporting
935      structures of arbitrary complexity; supplied fix_vars.php script to fix
936      old syntax. (Andrei)
937    - added $insert_tag_check to speed up cached pages if {insert ...} is not
938      used. (Monte)
939    - added $compiler_class variable to allow specifying a different compiler
940      class. (Andrei)
941    - changed Smarty to compile templates at runtime, allowing for arbitrary
942      template resources. (Monte)
943    - added fix for LOCK_EX under Windows and changed a couple of file
944      permissions for security. (Monte, Fernando Nunes)
945    - allow arbitrary date strings to date_format, html_select_date and
946      html_select_time (Monte)
947
948Version 1.3.2
949-------------
950    - fixed a bug that caused some nested includes to loop infinitely. (Andrei)
951    - added optional HTML header to output. (Monte)
952    - significantly improved config_load performance. (Andrei)
953    - added format attribute to math function. (Monte)
954    - added html_select_time custom function. (Andrei)
955    - fixed minor PHP warning when attempting to unset an unset variable
956      (Monte)
957    - added count_characters, count_words, count_sentences, count_paragraphs
958      modifiers (Monte)
959
960Version 1.3.1pl1
961--------------
962    - bug fix, recovered missing _syntax_error function (Monte)
963
964Version 1.3.1
965-------------
966    - document first, last, index_prev, index_next (Monte)
967    - added 'first' and 'last' section properties. (Andrei)
968    - split out compiling code to separate class for faster template execution
969      time (Monte)
970    - fixed a couple of minor PHP warnings (Monte)
971    - added and documented unregister_modifier() and unregister_function() API
972      calls. (Monte)
973    - added and documented 'fetch' and 'math' functions. (Monte)
974    - added ability to index looped variables by section properties, e.g.
975      $foo.index_prev/bar. (Andrei)
976    - added index_prev and index_next section properties. (Andrei)
977    - fixed issue with php executing in literal blocks. (Monte)
978
979Version 1.3.0
980-------------
981    - moved license from GPL to LGPL (Monte)
982    - implemented workaround for PHP "feature" that eats carriage returns
983      if the PHP tag is at the end of the line. (Andrei)
984    - removed $allow_php, added $php_handling logic (Monte)
985    - added file locking to prevent reader/writer problem. (Andrei)
986    - made Smarty catch unimplemented modifiers and custom functions and output
987      error messages during compilation instead of failing during run time.
988      (Andrei)
989    - removed short-tags at the top of the smarty scripts (Monte)
990    - added register_function() and register_modifier() API calls to make
991      registering stuff easier. (Andrei)
992    - added template results caching capability. (Monte, Andrei)
993    - added optional 'options' attribute to html_options custom function
994      that allows passing associative arrays for values/output. (Andrei)
995    - modifier arguments can now contain '|' and ':' characters inside quoted
996      strings. (Andrei)
997
998Version 1.2.2
999-------------
1000    - fixed bug that would not respect nested template directories and would
1001      put all compiled files into top-level one. (Andrei)
1002    - fixed bug using $PHP_VERSION instead of environment var PHP_VERSION.
1003      (Monte)
1004    - a couple small warning fixes. (Monte)
1005
1006Version 1.2.1
1007-------------
1008    - added $compile_dir, removed $compile_dir_ext, simplified usage. (Monte)
1009    - added tips & tricks chapter to documentation. (Monte)
1010    - misc documentation updates. (Monte)
1011
1012Version 1.2.0
1013-------------
1014    - updated documentation (Monte)
1015    - added file and line number information to syntax error messages. (Andrei)
1016    - added ability to index template vars by a key. (Andrei)
1017
1018Version 1.1.0
1019-------------
1020    - misc documentation changes, official stable release
1021
1022Version 1.0b
1023------------
1024    - fixed the bug that prevented using non-array values for 'loop' attribute.
1025      (Andrei)
1026    - many misc documentation changes & additions (Monte)
1027
1028Version 1.0a
1029------------
1030    - fixed bug that caused templates to recompile every time (Monte)
1031
1032Version 1.0
1033------------
1034    - initial release
1035
1036/* vim: set et tw=64 ft=changelog: */
Note: See TracBrowser for help on using the repository browser.