~ubuntu-branches/ubuntu/karmic/smarty/karmic

« back to all changes in this revision

Viewing changes to libs/Config_File.class.php

  • Committer: Bazaar Package Importer
  • Author(s): Igor Genibel
  • Date: 2005-11-02 19:08:30 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051102190830-8jm4nqv2fivcq9si
Tags: 2.6.10-0.2
* Non-maintainer upload (with maintainer permission: 0-day NMU).
* Change Maintainer address

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.9
 
21
 * @version 2.6.10
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.78 2005/03/22 08:45:06 messju Exp $ */
 
28
/* $Id: Config_File.class.php,v 1.80 2005/07/18 15:22:41 messju Exp $ */
29
29
 
30
30
/**
31
31
 * Config file reading class
105
105
     * @param string $var_name (optional) variable to get info for
106
106
     * @return string|array a value or array of values
107
107
     */
108
 
    function &get($file_name, $section_name = NULL, $var_name = NULL)
 
108
    function get($file_name, $section_name = NULL, $var_name = NULL)
109
109
    {
110
110
        if (empty($file_name)) {
111
111
            $this->_trigger_error_msg('Empty config file name');