Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10223] Make definition of phpbb_require_updated conditional
This commit is contained in:
Andreas Fischer 2011-06-20 00:28:42 +02:00
commit cc7c5d54ad

View file

@ -33,6 +33,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;
@ -49,6 +51,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);