diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2011-06-20 00:28:35 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2011-06-20 00:28:35 +0200 |
| commit | e0ecd3e11835ae053e9cb8a10f25c28f881f74e9 (patch) | |
| tree | 7f0ef4dde867461eb96555175447e71009b17ad1 /phpBB/install/database_update.php | |
| parent | 1320bb7bf84c393a6a3821326a6444a3ce94640f (diff) | |
| parent | d5c2bbf62070224fe040d75684574fb10409ac53 (diff) | |
| download | forums-e0ecd3e11835ae053e9cb8a10f25c28f881f74e9.tar forums-e0ecd3e11835ae053e9cb8a10f25c28f881f74e9.tar.gz forums-e0ecd3e11835ae053e9cb8a10f25c28f881f74e9.tar.bz2 forums-e0ecd3e11835ae053e9cb8a10f25c28f881f74e9.tar.xz forums-e0ecd3e11835ae053e9cb8a10f25c28f881f74e9.zip | |
Merge branch 'prep-release-3.0.9' into develop-olympus
* prep-release-3.0.9:
[ticket/10223] Make definition of phpbb_require_updated conditional
Diffstat (limited to 'phpBB/install/database_update.php')
| -rw-r--r-- | phpBB/install/database_update.php | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index ec1a16339a..b08a900c5b 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -34,20 +34,23 @@ define('IN_INSTALL', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); -function phpbb_require_updated($path, $optional = false) +if (!function_exists('phpbb_require_updated')) { - global $phpbb_root_path; + function phpbb_require_updated($path, $optional = false) + { + global $phpbb_root_path; - $new_path = $phpbb_root_path . 'install/update/new/' . $path; - $old_path = $phpbb_root_path . $path; + $new_path = $phpbb_root_path . 'install/update/new/' . $path; + $old_path = $phpbb_root_path . $path; - if (file_exists($new_path)) - { - require($new_path); - } - else if (!$optional || file_exists($old_path)) - { - require($old_path); + if (file_exists($new_path)) + { + require($new_path); + } + else if (!$optional || file_exists($old_path)) + { + require($old_path); + } } } |
