mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/14044] global $table_prefix in constants.php
PHPBB3-14044
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user