diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-05-31 01:54:38 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-31 01:54:38 +0200 |
| commit | f7b8043b435b23ba615ac52e568e5828daf85ed5 (patch) | |
| tree | 02e016158a0df54a37d5032aefa52b7652473397 /phpBB/phpbb/db | |
| parent | f4dcb69dae9964c7d6ca9d06828d773a63a3abed (diff) | |
| download | forums-f7b8043b435b23ba615ac52e568e5828daf85ed5.tar forums-f7b8043b435b23ba615ac52e568e5828daf85ed5.tar.gz forums-f7b8043b435b23ba615ac52e568e5828daf85ed5.tar.bz2 forums-f7b8043b435b23ba615ac52e568e5828daf85ed5.tar.xz forums-f7b8043b435b23ba615ac52e568e5828daf85ed5.zip | |
[ticket/12638] Use require if phpbb_require_updated isn't available
PHPBB3-12638
Diffstat (limited to 'phpBB/phpbb/db')
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v30x/local_url_bbcode.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migration/data/v30x/local_url_bbcode.php b/phpBB/phpbb/db/migration/data/v30x/local_url_bbcode.php index 139dc95b28..edcc69e1bf 100644 --- a/phpBB/phpbb/db/migration/data/v30x/local_url_bbcode.php +++ b/phpBB/phpbb/db/migration/data/v30x/local_url_bbcode.php @@ -44,9 +44,16 @@ class local_url_bbcode extends \phpbb\db\migration\migration { if (!class_exists('acp_bbcodes')) { - global $phpEx; - phpbb_require_updated('includes/acp/acp_bbcodes.' . $phpEx); + if (function_exists('phpbb_require_updated')) + { + phpbb_require_updated('includes/acp/acp_bbcodes.' . $this->php_ext); + } + else + { + require($this->phpbb_root_path . 'includes/acp/acp_bbcodes.' . $this->php_ext); + } } + $bbcode_match = $row['bbcode_match']; $bbcode_tpl = $row['bbcode_tpl']; |
