diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-24 17:31:44 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-24 17:31:44 -0500 |
commit | c4b3d3a0896129a6dc2b6f97e3d97c098aa38667 (patch) | |
tree | c33b125fd60f6644003bf84958fb4fda157f3d4e /phpBB/develop/mysql_upgrader.php | |
parent | df92b7bdf2e91f49461852eb962386009b64d2df (diff) | |
download | forums-c4b3d3a0896129a6dc2b6f97e3d97c098aa38667.tar forums-c4b3d3a0896129a6dc2b6f97e3d97c098aa38667.tar.gz forums-c4b3d3a0896129a6dc2b6f97e3d97c098aa38667.tar.bz2 forums-c4b3d3a0896129a6dc2b6f97e3d97c098aa38667.tar.xz forums-c4b3d3a0896129a6dc2b6f97e3d97c098aa38667.zip |
[ticket/10058] Initialize $phpbb_root_path in mysql_upgrader.php.
Since knowledge base instructions tell users to place this script
in the root of the forum, use './' as phpbb root path. Actual
initialization code copied from check_flash_bbcodes.php.
PHPBB3-10058
Diffstat (limited to 'phpBB/develop/mysql_upgrader.php')
-rw-r--r-- | phpBB/develop/mysql_upgrader.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/develop/mysql_upgrader.php b/phpBB/develop/mysql_upgrader.php index 5a7034b45c..70c8173a32 100644 --- a/phpBB/develop/mysql_upgrader.php +++ b/phpBB/develop/mysql_upgrader.php @@ -21,6 +21,7 @@ die("Please read the first lines of this script for instructions on how to enable it"); define('IN_PHPBB', true); +$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); |