mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
update files to 2.2.0 tags, get ready for release
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Config_File class.
|
* Config_File class.
|
||||||
*
|
*
|
||||||
* @version 2.1.1
|
* @version 2.2.0
|
||||||
* @author Andrei Zmievski <andrei@php.net>
|
* @author Andrei Zmievski <andrei@php.net>
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
|
7
NEWS
7
NEWS
@@ -1,3 +1,6 @@
|
|||||||
|
Version 2.2.0
|
||||||
|
-------------
|
||||||
|
|
||||||
- make debug.tpl work with any delimiter (Monte)
|
- make debug.tpl work with any delimiter (Monte)
|
||||||
- change logic in assign() and append() to test var names
|
- change logic in assign() and append() to test var names
|
||||||
against != '' instead of empty() (Monte)
|
against != '' instead of empty() (Monte)
|
||||||
@@ -6,8 +9,8 @@
|
|||||||
(Andreas Kossmeier, Monte)
|
(Andreas Kossmeier, Monte)
|
||||||
- move debug.tpl to SMARTY_DIR, add to constructor (Monte)
|
- move debug.tpl to SMARTY_DIR, add to constructor (Monte)
|
||||||
- fixed warning message in function.assign_debug_info (Monte)
|
- fixed warning message in function.assign_debug_info (Monte)
|
||||||
- fixed $template_dir, $compile_dir, $cache_dir, $config_dir
|
- fixed $template_dir, $compile_dir, $cache_dir, $config_dir,
|
||||||
to respect include_path (Monte)
|
$plugin_dir to respect include_path (Monte)
|
||||||
- fixed warning message with output filter array (Monte)
|
- fixed warning message with output filter array (Monte)
|
||||||
- add optional 2nd parameter to date_format, used as
|
- add optional 2nd parameter to date_format, used as
|
||||||
the default date if the passed date is empty (Monte)
|
the default date if the passed date is empty (Monte)
|
||||||
|
2
README
2
README
@@ -2,7 +2,7 @@ NAME:
|
|||||||
|
|
||||||
Smarty - the PHP compiling template engine
|
Smarty - the PHP compiling template engine
|
||||||
|
|
||||||
VERSION: 2.1.1
|
VERSION: 2.2.0
|
||||||
|
|
||||||
AUTHORS:
|
AUTHORS:
|
||||||
|
|
||||||
|
@@ -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
|
2.1.1
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@php.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 2.1.1
|
* Version: 2.2.0
|
||||||
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@@ -168,7 +168,7 @@ class Smarty
|
|||||||
var $_conf_obj = null; // configuration object
|
var $_conf_obj = null; // configuration object
|
||||||
var $_config = array(); // loaded configuration settings
|
var $_config = array(); // loaded configuration settings
|
||||||
var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty'
|
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 $_extract = false; // flag for custom functions
|
||||||
var $_inclusion_depth = 0; // current template inclusion depth
|
var $_inclusion_depth = 0; // current template inclusion depth
|
||||||
var $_compile_id = null; // for different compiled templates
|
var $_compile_id = null; // for different compiled templates
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@php.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 2.1.1
|
* Version: 2.2.0
|
||||||
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Config_File class.
|
* Config_File class.
|
||||||
*
|
*
|
||||||
* @version 2.1.1
|
* @version 2.2.0
|
||||||
* @author Andrei Zmievski <andrei@php.net>
|
* @author Andrei Zmievski <andrei@php.net>
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@php.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 2.1.1
|
* Version: 2.2.0
|
||||||
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@@ -168,7 +168,7 @@ class Smarty
|
|||||||
var $_conf_obj = null; // configuration object
|
var $_conf_obj = null; // configuration object
|
||||||
var $_config = array(); // loaded configuration settings
|
var $_config = array(); // loaded configuration settings
|
||||||
var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty'
|
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 $_extract = false; // flag for custom functions
|
||||||
var $_inclusion_depth = 0; // current template inclusion depth
|
var $_inclusion_depth = 0; // current template inclusion depth
|
||||||
var $_compile_id = null; // for different compiled templates
|
var $_compile_id = null; // for different compiled templates
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@php.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 2.1.1
|
* Version: 2.2.0
|
||||||
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
* Copyright: 2001,2002 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
Reference in New Issue
Block a user