aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-02-24 17:31:44 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-24 17:31:44 -0500
commitc4b3d3a0896129a6dc2b6f97e3d97c098aa38667 (patch)
treec33b125fd60f6644003bf84958fb4fda157f3d4e /phpBB/develop
parentdf92b7bdf2e91f49461852eb962386009b64d2df (diff)
downloadforums-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')
-rw-r--r--phpBB/develop/mysql_upgrader.php1
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);