mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14492] Don't explicitly pass data providers by refs
PHPBB3-14492
This commit is contained in:
parent
b9c284d85b
commit
e02aca8399
1 changed files with 3 additions and 3 deletions
|
@ -46,9 +46,9 @@ class phpbb_questionnaire_data_collector
|
|||
$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)
|
||||
{
|
||||
$provider = &$this->providers[$key];
|
||||
$provider = $this->providers[$key];
|
||||
$this->data[$provider->get_identifier()] = $provider->get_data();
|
||||
}
|
||||
$this->data['install_id'] = $this->install_id;
|
||||
|
|
Loading…
Add table
Reference in a new issue