aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-03-11 15:42:24 +0100
committerNils Adermann <naderman@naderman.de>2010-09-17 13:51:31 +0200
commitd87d9d96b2de67480084f0626986dadaeeda7806 (patch)
tree2c97d49d857c178fd0dbe63b3be0b258e1d14e27 /phpBB/includes/functions.php
parent99a3adfba791baabd27f82429fddfbcb82625523 (diff)
downloadforums-d87d9d96b2de67480084f0626986dadaeeda7806.tar
forums-d87d9d96b2de67480084f0626986dadaeeda7806.tar.gz
forums-d87d9d96b2de67480084f0626986dadaeeda7806.tar.bz2
forums-d87d9d96b2de67480084f0626986dadaeeda7806.tar.xz
forums-d87d9d96b2de67480084f0626986dadaeeda7806.zip
[feature/request-class] request_var should return after setting the request object.
If the "dependency injection" mechanism is used there should not be any regular computation of a result value. request_var has to return immediately. PHPBB3-9716
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 485f5487cc..d5132d218e 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -49,6 +49,7 @@ function request_var($var_name, $default, $multibyte = false, $cookie = false)
if ($var_name instanceof phpbb_request_interface)
{
$request = $var_name;
+ return;
}
// no request class set, create a temporary one ourselves to keep backwards compatability