aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-06-12 23:19:46 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-06-12 23:19:46 +0200
commit8453587264e4130b9d6397b9a18c561c9f8830a9 (patch)
treedca300b54b528bbbc4243c31bb6e8162d858be41 /phpBB/install/database_update.php
parentf9f5909f9a45ca195b24c93addf7137cb827cbe5 (diff)
parentd724c3afac8feb174c412d4444b5cb747982de2e (diff)
downloadforums-8453587264e4130b9d6397b9a18c561c9f8830a9.tar
forums-8453587264e4130b9d6397b9a18c561c9f8830a9.tar.gz
forums-8453587264e4130b9d6397b9a18c561c9f8830a9.tar.bz2
forums-8453587264e4130b9d6397b9a18c561c9f8830a9.tar.xz
forums-8453587264e4130b9d6397b9a18c561c9f8830a9.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/9992] The table name constant needs to be defined in the updater
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index d181c6320b..db535fbddb 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -76,6 +76,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', '>='))
{