From cecccfcae61aac0535acb7febcb1f2674bd8d826 Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 11 Jul 2002 15:18:39 +0000 Subject: [PATCH] update files to 2.2.0 tags, get ready for release --- Config_File.class.php | 2 +- NEWS | 7 +++++-- README | 2 +- RELEASE_NOTES | 24 ++++++++++++++++++++++++ Smarty.class.php | 4 ++-- Smarty_Compiler.class.php | 2 +- libs/Config_File.class.php | 2 +- libs/Smarty.class.php | 4 ++-- libs/Smarty_Compiler.class.php | 2 +- 9 files changed, 38 insertions(+), 11 deletions(-) diff --git a/Config_File.class.php b/Config_File.class.php index e86d7014..9205e1aa 100644 --- a/Config_File.class.php +++ b/Config_File.class.php @@ -3,7 +3,7 @@ /** * Config_File class. * - * @version 2.1.1 + * @version 2.2.0 * @author Andrei Zmievski * @access public * diff --git a/NEWS b/NEWS index 8e1125f5..03e1704e 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +Version 2.2.0 +------------- + - make debug.tpl work with any delimiter (Monte) - change logic in assign() and append() to test var names against != '' instead of empty() (Monte) @@ -6,8 +9,8 @@ (Andreas Kossmeier, Monte) - move debug.tpl to SMARTY_DIR, add to constructor (Monte) - fixed warning message in function.assign_debug_info (Monte) - - fixed $template_dir, $compile_dir, $cache_dir, $config_dir - to respect include_path (Monte) + - fixed $template_dir, $compile_dir, $cache_dir, $config_dir, + $plugin_dir to respect include_path (Monte) - fixed warning message with output filter array (Monte) - add optional 2nd parameter to date_format, used as the default date if the passed date is empty (Monte) diff --git a/README b/README index 907b2f06..e5c89b05 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME: Smarty - the PHP compiling template engine -VERSION: 2.1.1 +VERSION: 2.2.0 AUTHORS: diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 7fc8e04b..e59d4635 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -1,3 +1,27 @@ +2.2.0 +----- + +Smarty now allows an array of paths for the $plugin_dir class variable. The +directories will be searched in the order they are given, so for efficiency keep +the most-used plugins at the top. Also, absolute paths to the plugin directories are +more efficient than relying on the PHP include_path. + +Cache files can now be grouped with the cache_id. See the documentation under +the new "Caching" section for details. compile_id also respects the same +grouping syntax. The cache/compile file structure changed, so be sure to clear +out all your cache and compile files when upgrading Smarty. Also if you are +using PHP-accelerator, restart apache. I've seen some quirky things happen if +the phpa files do not get cleared (known issue with phpa and parent +class-member changes, so just clear 'em.) + +Smarty now correctly respects the PHP include_path for $template_dir, $compile_dir, +$cache_dir, $config_dir and $plugin_dir. Be aware that relying on the +include_path is an overhead, try to use absolute pathnames when possible +(or relative to working directory.) + +Many misc. bug fixes and enhancements, see the full ChangeLog (NEWS file) for +details. + 2.1.1 ----- diff --git a/Smarty.class.php b/Smarty.class.php index 292a99e6..b23e3b5f 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -5,7 +5,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 2.1.1 + * Version: 2.2.0 * Copyright: 2001,2002 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or @@ -168,7 +168,7 @@ class Smarty var $_conf_obj = null; // configuration object var $_config = array(); // loaded configuration settings var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty' - var $_version = '2.1.1'; // Smarty version number + var $_version = '2.2.0'; // Smarty version number var $_extract = false; // flag for custom functions var $_inclusion_depth = 0; // current template inclusion depth var $_compile_id = null; // for different compiled templates diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index dd14a99a..c4c9368e 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -6,7 +6,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 2.1.1 + * Version: 2.2.0 * Copyright: 2001,2002 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index e86d7014..9205e1aa 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -3,7 +3,7 @@ /** * Config_File class. * - * @version 2.1.1 + * @version 2.2.0 * @author Andrei Zmievski * @access public * diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 292a99e6..b23e3b5f 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -5,7 +5,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 2.1.1 + * Version: 2.2.0 * Copyright: 2001,2002 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or @@ -168,7 +168,7 @@ class Smarty var $_conf_obj = null; // configuration object var $_config = array(); // loaded configuration settings var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty' - var $_version = '2.1.1'; // Smarty version number + var $_version = '2.2.0'; // Smarty version number var $_extract = false; // flag for custom functions var $_inclusion_depth = 0; // current template inclusion depth var $_compile_id = null; // for different compiled templates diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index dd14a99a..c4c9368e 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -6,7 +6,7 @@ * Author: Monte Ohrt * Andrei Zmievski * - * Version: 2.1.1 + * Version: 2.2.0 * Copyright: 2001,2002 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or