mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12775] Remove useless includes of config.php
PHPBB3-12775
This commit is contained in:
@@ -257,10 +257,8 @@ class phpbb_questionnaire_phpbb_data_provider
|
||||
*/
|
||||
function get_data()
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
global $phpbb_root_path, $phpEx, $phpbb_config_php_file;
|
||||
|
||||
$phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $phpEx);
|
||||
$phpbb_config_php_file->set_config_file($phpbb_root_path . 'config.' . $phpEx);
|
||||
extract($phpbb_config_php_file->get_all());
|
||||
unset($dbhost, $dbport, $dbname, $dbuser, $dbpasswd); // Just a precaution
|
||||
|
||||
|
Reference in New Issue
Block a user