GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get_threaded_children fix
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
smarty
/
libs
/
Config_File.class.php
diff --git
a/wwwroot/smarty/libs/Config_File.class.php
b/wwwroot/smarty/libs/Config_File.class.php
index e0e8c0c0fbbea9ba51045aa6baa4a4bba54f94e7..5787ad15f81309d830be32042562d12c46f76a28 100644
(file)
--- a/
wwwroot/smarty/libs/Config_File.class.php
+++ b/
wwwroot/smarty/libs/Config_File.class.php
@@
-17,15
+17,19
@@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * @link http://smarty.php.net/
- * @version 2.6.10
+ * For questions, help, comments, discussion, etc., please join the
+ * Smarty mailing list. Send a blank e-mail to
+ * smarty-discussion-subscribe@googlegroups.com
+ *
+ * @link http://www.smarty.net/
+ * @version 2.6.26
* @copyright Copyright: 2001-2005 New Digital Group, Inc.
* @author Andrei Zmievski <andrei@php.net>
* @access public
* @package Smarty
*/
* @copyright Copyright: 2001-2005 New Digital Group, Inc.
* @author Andrei Zmievski <andrei@php.net>
* @access public
* @package Smarty
*/
-/* $Id: Config_File.class.php
,v 1.80 2005/07/18 15:22:41 messju Exp
$ */
+/* $Id: Config_File.class.php
3149 2009-05-23 20:59:25Z monte.ohrt
$ */
/**
* Config file reading class
/**
* Config file reading class
@@
-285,9
+289,9
@@
class Config_File {
$line = $lines[$i];
if (empty($line)) continue;
$line = $lines[$i];
if (empty($line)) continue;
- if (
$line{0}
== '[' && preg_match('!^\[(.*?)\]!', $line, $match) ) {
+ if (
substr($line, 0, 1)
== '[' && preg_match('!^\[(.*?)\]!', $line, $match) ) {
/* section found */
/* section found */
- if (
$match[1]{0}
== '.') {
+ if (
substr($match[1], 0, 1)
== '.') {
/* hidden section */
if ($this->read_hidden) {
$section_name = substr($match[1], 1);
/* hidden section */
if ($this->read_hidden) {
$section_name = substr($match[1], 1);
@@
-297,7
+301,7
@@
class Config_File {
$vars = array();
continue;
}
$vars = array();
continue;
}
- } else {
+ } else {
$section_name = $match[1];
}
if (!isset($config_data['sections'][$section_name]))
$section_name = $match[1];
}
if (!isset($config_data['sections'][$section_name]))
@@
-347,7
+351,7
@@
class Config_File {
*/
function _set_config_var(&$container, $var_name, $var_value, $booleanize)
{
*/
function _set_config_var(&$container, $var_name, $var_value, $booleanize)
{
- if (
$var_name{0}
== '.') {
+ if (
substr($var_name, 0, 1)
== '.') {
if (!$this->read_hidden)
return;
else
if (!$this->read_hidden)
return;
else
This page took
0.167395 seconds
and
4
git commands to generate.