mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 03:18:52 +00:00
[ticket/9992] The table name constant needs to be defined in the updater
When the database update is run before updating the files the constant is not yet defined. PHPBB3-9992
This commit is contained in:
parent
f1998ddbc7
commit
b65cf4c8d6
1 changed files with 7 additions and 0 deletions
|
@ -78,6 +78,13 @@ require($phpbb_root_path . 'includes/constants.' . $phpEx);
|
|||
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
|
||||
|
||||
// new table constants are separately defined here in case the updater is run
|
||||
// before the files are updated
|
||||
if (!defined('LOGIN_ATTEMPT_TABLE'))
|
||||
{
|
||||
define('LOGIN_ATTEMPT_TABLE', $table_prefix . 'login_attempts');
|
||||
}
|
||||
|
||||
// If we are on PHP >= 6.0.0 we do not need some code
|
||||
if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue