1
0
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:
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
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');

View File

@@ -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');