source: branches/feature-module-update/data/module/Smarty/NEWS @ 15079

Revision 15079, 43.9 KB checked in by nanasess, 14 years ago (diff)

svn:mime-type application/x-httpd-php; charset=UTF-8 設定

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