aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-08-31 21:26:50 +0200
committerNils Adermann <naderman@naderman.de>2010-09-17 14:08:14 +0200
commit456de639123ae3da6320bed6140ab69ac9925e74 (patch)
tree599778c0a452f6180de82e13288f7b7ed8e686ac /phpBB/includes/functions.php
parentb3558b50786dd8a66e4c4011647c048612bbfa7f (diff)
downloadforums-456de639123ae3da6320bed6140ab69ac9925e74.tar
forums-456de639123ae3da6320bed6140ab69ac9925e74.tar.gz
forums-456de639123ae3da6320bed6140ab69ac9925e74.tar.bz2
forums-456de639123ae3da6320bed6140ab69ac9925e74.tar.xz
forums-456de639123ae3da6320bed6140ab69ac9925e74.zip
[feature/request-class] Refactor request classes to use autoloading
All class names have been adjusted to use a phpbb_request prefix, allowing them to be autoloaded. Also introduces some improvements to autoloading in general. PHPBB3-9716
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 81c5c40fd1..029281ee84 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -21,7 +21,7 @@ if (!defined('IN_PHPBB'))
function set_var(&$result, $var, $type, $multibyte = false)
{
// no need for dependency injection here, if you have the object, call the method yourself!
- $type_cast_helper = new phpbb_type_cast_helper();
+ $type_cast_helper = new phpbb_request_type_cast_helper();
$type_cast_helper->set_var($result, $var, $type, $multibyte);
}
@@ -70,7 +70,7 @@ function request_var($var_name, $default, $multibyte = false, $cookie = false, p
{
// false param: enable super globals, so the created request class does not
// make super globals inaccessible everywhere outside this function.
- $tmp_request = new phpbb_request(new phpbb_type_cast_helper(), false);
+ $tmp_request = new phpbb_request(new phpbb_request_type_cast_helper(), false);
}
return $tmp_request->variable($var_name, $default, $multibyte, ($cookie) ? phpbb_request_interface::COOKIE : phpbb_request_interface::REQUEST);