diff options
Diffstat (limited to 'phpBB/includes/ucp/ucp_main.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_main.php | 21 | 
1 files changed, 11 insertions, 10 deletions
| diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php index a1624e78ec..217d46b767 100644 --- a/phpBB/includes/ucp/ucp_main.php +++ b/phpBB/includes/ucp/ucp_main.php @@ -219,9 +219,8 @@ class ucp_main  				{  					if (check_form_key('ucp_front_subscribed'))  					{ -						$forums = array_keys(request_var('f', array(0 => 0))); -						$topics = array_keys(request_var('t', array(0 => 0))); -						$msg = ''; +						$forums = array_keys($request->variable('f', array(0 => 0))); +						$topics = array_keys($request->variable('t', array(0 => 0)));  						if (sizeof($forums) || sizeof($topics))  						{ @@ -401,7 +400,7 @@ class ucp_main  				if (isset($_POST['unbookmark']))  				{  					$s_hidden_fields = array('unbookmark' => 1); -					$topics = (isset($_POST['t'])) ? array_keys(request_var('t', array(0 => 0))) : array(); +					$topics = (isset($_POST['t'])) ? array_keys($request->variable('t', array(0 => 0))) : array();  					$url = $this->u_action;  					if (!sizeof($topics)) @@ -457,7 +456,7 @@ class ucp_main  				{  					if (check_form_key('ucp_draft'))  					{ -						$drafts = array_keys(request_var('d', array(0 => 0))); +						$drafts = array_keys($request->variable('d', array(0 => 0)));  						if (sizeof($drafts))  						{ @@ -480,8 +479,8 @@ class ucp_main  				if ($submit && $edit)  				{ -					$draft_subject = utf8_normalize_nfc(request_var('subject', '', true)); -					$draft_message = utf8_normalize_nfc(request_var('message', '', true)); +					$draft_subject = $request->variable('subject', '', true); +					$draft_message = $request->variable('message', '', true);  					if (check_form_key('ucp_draft'))  					{  						if ($draft_message && $draft_subject) @@ -643,11 +642,12 @@ class ucp_main  	*/  	function assign_topiclist($mode = 'subscribed', $forbidden_forum_ary = array())  	{ -		global $user, $db, $template, $config, $cache, $auth, $phpbb_root_path, $phpEx, $phpbb_container; +		global $user, $db, $template, $config, $cache, $auth, $phpbb_root_path, $phpEx, $phpbb_container, $request; -		$table = ($mode == 'subscribed') ? TOPICS_WATCH_TABLE : BOOKMARKS_TABLE; -		$start = request_var('start', 0); +		/* @var $pagination \phpbb\pagination */  		$pagination = $phpbb_container->get('pagination'); +		$table = ($mode == 'subscribed') ? TOPICS_WATCH_TABLE : BOOKMARKS_TABLE; +		$start = $request->variable('start', 0);  		// Grab icons  		$icons = $cache->obtain_icons(); @@ -769,6 +769,7 @@ class ucp_main  			}  		} +		/* @var $phpbb_content_visibility \phpbb\content_visibility */  		$phpbb_content_visibility = $phpbb_container->get('content.visibility');  		foreach ($topic_list as $topic_id) | 
