~ubuntu-branches/ubuntu/dapper/smarty/dapper-updates

« back to all changes in this revision

Viewing changes to libs/Config_File.class.php

  • Committer: Bazaar Package Importer
  • Author(s): Igor Genibel
  • Date: 2006-01-12 11:21:13 UTC
  • mfrom: (0.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060112112113-jnj3qjevq3otksra
Tags: 2.6.11-1
* New upstream release
* Added myself to Uploaders
* Ack previous NMU (Closes: #332098)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
 *
20
20
 * @link http://smarty.php.net/
21
 
 * @version 2.6.10
 
21
 * @version 2.6.11
22
22
 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
23
23
 * @author Andrei Zmievski <andrei@php.net>
24
24
 * @access public
25
25
 * @package Smarty
26
26
 */
27
27
 
28
 
/* $Id: Config_File.class.php,v 1.80 2005/07/18 15:22:41 messju Exp $ */
 
28
/* $Id: Config_File.class.php,v 1.82 2005/11/23 20:36:03 boots Exp $ */
29
29
 
30
30
/**
31
31
 * Config file reading class
285
285
            $line = $lines[$i];
286
286
            if (empty($line)) continue;
287
287
 
288
 
            if ( $line{0} == '[' && preg_match('!^\[(.*?)\]!', $line, $match) ) {
 
288
            if ( substr($line, 0, 1) == '[' && preg_match('!^\[(.*?)\]!', $line, $match) ) {
289
289
                /* section found */
290
 
                if ($match[1]{0} == '.') {
 
290
                if (substr($match[1], 0, 1) == '.') {
291
291
                    /* hidden section */
292
292
                    if ($this->read_hidden) {
293
293
                        $section_name = substr($match[1], 1);
347
347
     */
348
348
    function _set_config_var(&$container, $var_name, $var_value, $booleanize)
349
349
    {
350
 
        if ($var_name{0} == '.') {
 
350
        if (substr($var_name, 0, 1) == '.') {
351
351
            if (!$this->read_hidden)
352
352
                return;
353
353
            else