mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/12775] Set defined_vars as a property of config_php_file
PHPBB3-12775
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user