aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/index.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-03-11 15:46:14 +0100
committerNils Adermann <naderman@naderman.de>2010-09-17 13:59:57 +0200
commit76e530196bb99d02b3d6d7736fde027fa5e2bae8 (patch)
tree41e111d902adb24894ef13fe4dd3fa868cc57145 /phpBB/install/index.php
parentd87d9d96b2de67480084f0626986dadaeeda7806 (diff)
downloadforums-76e530196bb99d02b3d6d7736fde027fa5e2bae8.tar
forums-76e530196bb99d02b3d6d7736fde027fa5e2bae8.tar.gz
forums-76e530196bb99d02b3d6d7736fde027fa5e2bae8.tar.bz2
forums-76e530196bb99d02b3d6d7736fde027fa5e2bae8.tar.xz
forums-76e530196bb99d02b3d6d7736fde027fa5e2bae8.zip
[feature/request-class] Use the request class in the installer & updater.
Just like common.php database_update.php and install/index.php need to include the request class files and create an instance for use in request_var. PHPBB3-9716
Diffstat (limited to 'phpBB/install/index.php')
-rw-r--r--phpBB/install/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php
index 03b19d1c12..3e4331cde5 100644
--- a/phpBB/install/index.php
+++ b/phpBB/install/index.php
@@ -171,6 +171,10 @@ require($phpbb_root_path . 'includes/functions_install.' . $phpEx);
$class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx);
$class_loader->register();
+$request = new phpbb_request();
+
+// make sure request_var uses this request instance
+request_var($request, 0); // "dependency injection" for a function
// Try and load an appropriate language if required
$language = basename(request_var('language', ''));
@@ -813,4 +817,4 @@ class module
}
}
-?> \ No newline at end of file
+?>