mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/14492] Don't explicitly pass data providers by refs
PHPBB3-14492
This commit is contained in:
@@ -46,9 +46,9 @@ class phpbb_questionnaire_data_collector
|
|||||||
$this->providers = array();
|
$this->providers = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_data_provider(&$provider)
|
function add_data_provider($provider)
|
||||||
{
|
{
|
||||||
$this->providers[] = &$provider;
|
$this->providers[] = $provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -80,7 +80,7 @@ class phpbb_questionnaire_data_collector
|
|||||||
{
|
{
|
||||||
foreach (array_keys($this->providers) as $key)
|
foreach (array_keys($this->providers) as $key)
|
||||||
{
|
{
|
||||||
$provider = &$this->providers[$key];
|
$provider = $this->providers[$key];
|
||||||
$this->data[$provider->get_identifier()] = $provider->get_data();
|
$this->data[$provider->get_identifier()] = $provider->get_data();
|
||||||
}
|
}
|
||||||
$this->data['install_id'] = $this->install_id;
|
$this->data['install_id'] = $this->install_id;
|
||||||
|
Reference in New Issue
Block a user