aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/request.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-08-18 23:19:48 +0200
committerIgor Wiedler <igor@wiedler.ch>2011-08-18 23:19:48 +0200
commitfd08cd8dd013c0d1bf8e18611f798c6987d9de9c (patch)
tree084176a8e8dabb15172d3b08476eba737984b8d4 /tests/mock/request.php
parentb4ae124084a65b027af105e06077b5cf9e7c3023 (diff)
downloadforums-fd08cd8dd013c0d1bf8e18611f798c6987d9de9c.tar
forums-fd08cd8dd013c0d1bf8e18611f798c6987d9de9c.tar.gz
forums-fd08cd8dd013c0d1bf8e18611f798c6987d9de9c.tar.bz2
forums-fd08cd8dd013c0d1bf8e18611f798c6987d9de9c.tar.xz
forums-fd08cd8dd013c0d1bf8e18611f798c6987d9de9c.zip
[feature/request-class] Remove $html_encode arg, force manual decoding
PHPBB3-9716
Diffstat (limited to 'tests/mock/request.php')
-rw-r--r--tests/mock/request.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/mock/request.php b/tests/mock/request.php
index 18aa2e724c..8b2708304c 100644
--- a/tests/mock/request.php
+++ b/tests/mock/request.php
@@ -25,21 +25,21 @@ class phpbb_mock_request implements phpbb_request_interface
$this->data[$super_global][$var_name] = $value;
}
- public function variable($var_name, $default, $multibyte = false, $super_global = phpbb_request_interface::REQUEST, $html_encode = true)
+ public function variable($var_name, $default, $multibyte = false, $super_global = phpbb_request_interface::REQUEST)
{
return isset($this->data[$super_global][$var_name]) ? $this->data[$super_global][$var_name] : $default;
}
- public function server($var_name, $default = '', $html_encode = false)
+ public function server($var_name, $default = '')
{
$super_global = phpbb_request_interface::SERVER;
return isset($this->data[$super_global][$var_name]) ? $this->data[$super_global][$var_name] : $default;
}
- public function header($header_name, $default = '', $html_encode = false)
+ public function header($header_name, $default = '')
{
$var_name = 'HTTP_' . str_replace('-', '_', strtoupper($header_name));
- return $this->server($var_name, $default, $html_encode);
+ return $this->server($var_name, $default);
}
public function is_set_post($name)