aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-27 20:10:19 +0200
committerTristan Darricau <github@nicofuma.fr>2014-07-07 01:02:13 +0200
commit4f56f9b90464ed23b30125a5df147577c435de9b (patch)
tree6771697d970c25006597bb0db1abaadb4ea7e9fb /phpBB/common.php
parent[ticket/12775] Use the config.php handler in \phpbb\config_php (diff)
downloadphpbb-4f56f9b90464ed23b30125a5df147577c435de9b.tar.gz
phpbb-4f56f9b90464ed23b30125a5df147577c435de9b.tar.bz2
phpbb-4f56f9b90464ed23b30125a5df147577c435de9b.zip
[ticket/12775] Rename the variables into common.php
PHPBB3-12775
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 901c0bd713..8c9e5b6023 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -27,9 +27,8 @@ require($phpbb_root_path . 'phpbb/class_loader.' . $phpEx);
$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', "{$phpbb_root_path}phpbb/", $phpEx);
$phpbb_class_loader->register();
-$config_php_handler = new \phpbb\config_php($phpbb_root_path, $phpEx);
-$config_file_data = $config_php_handler->load_config_file();
-extract($config_file_data);
+$phpbb_config_php_handler = new \phpbb\config_php($phpbb_root_path, $phpEx);
+extract($phpbb_config_php_handler->get_all());
if (!defined('PHPBB_INSTALLED'))
{
@@ -96,8 +95,8 @@ $phpbb_class_loader_ext->register();
phpbb_load_extensions_autoloaders($phpbb_root_path);
// Set up container
-$factory = new \phpbb\di\container_factory($config_php_handler, $phpbb_root_path, $phpEx);
-$phpbb_container = $factory->get_container();
+$phpbb_container_factory = new \phpbb\di\container_factory($phpbb_config_php_handler, $phpbb_root_path, $phpEx);
+$phpbb_container = $phpbb_container_factory->get_container();
$phpbb_class_loader->set_cache($phpbb_container->get('cache.driver'));
$phpbb_class_loader_ext->set_cache($phpbb_container->get('cache.driver'));