[ticket/10003] Require db_tools.php in database_update.php.

Use require_updated to use the new version of db_tools if one
is present.

PHPBB3-10003
This commit is contained in:
Oleg Pudeyev 2011-07-08 20:36:39 -04:00
parent 5b5c227423
commit fd728c2815

View file

@ -99,6 +99,8 @@ require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
phpbb_require_updated('includes/db/db_tools.' . $phpEx);
// new table constants are separately defined here in case the updater is run // new table constants are separately defined here in case the updater is run
// before the files are updated // before the files are updated
if (!defined('LOGIN_ATTEMPT_TABLE')) if (!defined('LOGIN_ATTEMPT_TABLE'))