mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14044] global $table_prefix in constants.php
PHPBB3-14044
This commit is contained in:
parent
369024b56f
commit
33db26d0cf
2 changed files with 3 additions and 4 deletions
|
@ -221,6 +221,9 @@ define('CAPTCHA_MAX_CHARS', 7);
|
|||
// Additional constants
|
||||
define('VOTE_CONVERTED', 127);
|
||||
|
||||
// BC global FTW
|
||||
global $table_prefix;
|
||||
|
||||
// Table names
|
||||
define('ACL_GROUPS_TABLE', $table_prefix . 'acl_groups');
|
||||
define('ACL_OPTIONS_TABLE', $table_prefix . 'acl_options');
|
||||
|
|
|
@ -98,10 +98,6 @@ class update extends task_base
|
|||
$this->language = $language;
|
||||
$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->config = $container->get('config');
|
||||
$this->extension_manager = $container->get('ext.manager');
|
||||
|
|
Loading…
Add table
Reference in a new issue