cvs: smarty / Config_File.class.php NEWS README RELEASE_NOTES Smarty.class.php Smarty_Compiler.class.php
| From: | Monte Ohrt | Date: | Thu, 11 Jul 2002 15:18:39 +0000 |
| Subject: | cvs: smarty / Config_File.class.php NEWS README RELEASE_NOTES Smarty.class.php Smarty_Compiler.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-184@lists.php.net to get a copy of this message | ||
mohrt Thu Jul 11 11:18:39 2002 EDT
Modified files:
/smarty Config_File.class.php NEWS README RELEASE_NOTES
Smarty.class.php Smarty_Compiler.class.php
Log:
update files to 2.2.0 tags, get ready for release
Index: smarty/Config_File.class.php
diff -u smarty/Config_File.class.php:1.31 smarty/Config_File.class.php:1.32
--- smarty/Config_File.class.php:1.31 Tue May 21 15:41:32 2002
+++ smarty/Config_File.class.php Thu Jul 11 11:18:38 2002
@@ -3,7 +3,7 @@
/**
* Config_File class.
*
- * @version 2.1.1
+ * @version 2.2.0
* @author Andrei Zmievski <andrei@php.net>
* @access public
*
Index: smarty/NEWS
diff -u smarty/NEWS:1.215 smarty/NEWS:1.216
--- smarty/NEWS:1.215 Tue Jul 9 09:34:19 2002
+++ smarty/NEWS Thu Jul 11 11:18:39 2002
@@ -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)
Index: smarty/README
diff -u smarty/README:1.45 smarty/README:1.46
--- smarty/README:1.45 Tue May 7 10:16:33 2002
+++ smarty/README Thu Jul 11 11:18:39 2002
@@ -2,7 +2,7 @@
Smarty - the PHP compiling template engine
-VERSION: 2.1.1
+VERSION: 2.2.0
AUTHORS:
Index: smarty/RELEASE_NOTES
diff -u smarty/RELEASE_NOTES:1.33 smarty/RELEASE_NOTES:1.34
--- smarty/RELEASE_NOTES:1.33 Tue May 7 10:16:33 2002
+++ smarty/RELEASE_NOTES Thu Jul 11 11:18:39 2002
@@ -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
-----
Index: smarty/Smarty.class.php
diff -u smarty/Smarty.class.php:1.300 smarty/Smarty.class.php:1.301
--- smarty/Smarty.class.php:1.300 Tue Jul 9 09:34:19 2002
+++ smarty/Smarty.class.php Thu Jul 11 11:18:39 2002
@@ -5,7 +5,7 @@
* Author: Monte Ohrt <monte@ispi.net>
* Andrei Zmievski <andrei@php.net>
*
- * 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 @@
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
Index: smarty/Smarty_Compiler.class.php
diff -u smarty/Smarty_Compiler.class.php:1.119 smarty/Smarty_Compiler.class.php:1.120
--- smarty/Smarty_Compiler.class.php:1.119 Thu Jun 27 10:25:25 2002
+++ smarty/Smarty_Compiler.class.php Thu Jul 11 11:18:39 2002
@@ -6,7 +6,7 @@
* Author: Monte Ohrt <monte@ispi.net>
* Andrei Zmievski <andrei@php.net>
*
- * 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