[ticket/14044] global $table_prefix in constants.php

PHPBB3-14044
This commit is contained in:
Mate Bartus 2015-10-28 01:12:52 +01:00
parent 369024b56f
commit 33db26d0cf
2 changed files with 3 additions and 4 deletions

View file

@ -221,6 +221,9 @@ define('CAPTCHA_MAX_CHARS', 7);
// Additional constants // Additional constants
define('VOTE_CONVERTED', 127); define('VOTE_CONVERTED', 127);
// BC global FTW
global $table_prefix;
// Table names // Table names
define('ACL_GROUPS_TABLE', $table_prefix . 'acl_groups'); define('ACL_GROUPS_TABLE', $table_prefix . 'acl_groups');
define('ACL_OPTIONS_TABLE', $table_prefix . 'acl_options'); define('ACL_OPTIONS_TABLE', $table_prefix . 'acl_options');

View file

@ -98,10 +98,6 @@ class update extends task_base
$this->language = $language; $this->language = $language;
$this->phpbb_root_path = $phpbb_root_path; $this->phpbb_root_path = $phpbb_root_path;
// BC global for migrations
global $table_prefix;
$table_prefix = $container->get_parameter('table_prefix');
$this->cache = $container->get('cache.driver'); $this->cache = $container->get('cache.driver');
$this->config = $container->get('config'); $this->config = $container->get('config');
$this->extension_manager = $container->get('ext.manager'); $this->extension_manager = $container->get('ext.manager');