[ticket/12775] Set defined_vars as a property of config_php_file

PHPBB3-12775
This commit is contained in:
Tristan Darricau 2014-06-30 01:01:48 +02:00
parent 35c0b6d77a
commit 8c0d179e3e

View file

@ -42,6 +42,8 @@ class config_php_file
*/ */
protected $config_file; protected $config_file;
private $defined_vars;
/** /**
* Constructor * Constructor
* *
@ -108,7 +110,6 @@ class config_php_file
{ {
if (file_exists($this->config_file)) if (file_exists($this->config_file))
{ {
$this->defined_vars = null;
$this->defined_vars = get_defined_vars(); $this->defined_vars = get_defined_vars();
require($this->config_file); require($this->config_file);