1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-09 00:55:23 +02:00

[ticket/10223] Make definition of phpbb_require_updated conditional

The automatic updater defines it too and includes database_update.php
for updating which causes an error otherwise.

PHPBB3-10223
This commit is contained in:
Nils Adermann 2011-06-20 00:00:30 +02:00
parent 67fde80fbb
commit ad5ed9d0ee

View File

@ -34,6 +34,8 @@ define('IN_INSTALL', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
$phpEx = substr(strrchr(__FILE__, '.'), 1); $phpEx = substr(strrchr(__FILE__, '.'), 1);
if (!function_exists('phpbb_require_updated'))
{
function phpbb_require_updated($path, $optional = false) function phpbb_require_updated($path, $optional = false)
{ {
global $phpbb_root_path; global $phpbb_root_path;
@ -50,6 +52,7 @@ function phpbb_require_updated($path, $optional = false)
require($old_path); require($old_path);
} }
} }
}
phpbb_require_updated('includes/startup.' . $phpEx); phpbb_require_updated('includes/startup.' . $phpEx);