mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/12775] Use a field instead of a local var in load_config_var()
PHPBB3-12775
This commit is contained in:
parent
91ca12f20e
commit
c87f44c669
1 changed files with 3 additions and 3 deletions
|
@ -108,11 +108,11 @@ class config_php
|
||||||
{
|
{
|
||||||
if (file_exists($this->config_file))
|
if (file_exists($this->config_file))
|
||||||
{
|
{
|
||||||
$defined_vars = null;
|
$this->defined_vars = null;
|
||||||
$defined_vars = get_defined_vars();
|
$this->defined_vars = get_defined_vars();
|
||||||
|
|
||||||
require($this->config_file);
|
require($this->config_file);
|
||||||
$this->config_data = array_diff_key(get_defined_vars(), $defined_vars);
|
$this->config_data = array_diff_key(get_defined_vars(), $this->defined_vars);
|
||||||
|
|
||||||
$this->config_loaded = true;
|
$this->config_loaded = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue