aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-11 20:11:03 -0700
committerCesar G <prototech91@gmail.com>2014-07-04 00:56:03 -0700
commit2ff8302c51a4219deacbe6b79a0d58c3d619dee3 (patch)
tree8aead3e58075ece27a127f4a64b3e83757907886
parent90a8c7e29af020050b589fb8b7485fb9ac67fc7e (diff)
downloadforums-2ff8302c51a4219deacbe6b79a0d58c3d619dee3.tar
forums-2ff8302c51a4219deacbe6b79a0d58c3d619dee3.tar.gz
forums-2ff8302c51a4219deacbe6b79a0d58c3d619dee3.tar.bz2
forums-2ff8302c51a4219deacbe6b79a0d58c3d619dee3.tar.xz
forums-2ff8302c51a4219deacbe6b79a0d58c3d619dee3.zip
[ticket/12013] Use path helper.
PHPBB3-12013
-rw-r--r--phpBB/includes/functions_content.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index f631b91e8d..d1a001110f 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -175,7 +175,7 @@ function make_jumpbox($action, $forum_id = false, $select_all = false, $acl_list
'FORUM_ID' => ($select_all) ? 0 : -1,
'FORUM_NAME' => ($select_all) ? $user->lang['ALL_FORUMS'] : $user->lang['SELECT_FORUM'],
'S_FORUM_COUNT' => $iteration,
- 'LINK' => phpbb_append_url_param($action, 'f', $forum_id),
+ 'LINK' => $phpbb_path_helper->append_url_params($action, array('f' => $forum_id)),
));
$iteration++;
@@ -190,7 +190,7 @@ function make_jumpbox($action, $forum_id = false, $select_all = false, $acl_list
'S_IS_CAT' => ($row['forum_type'] == FORUM_CAT) ? true : false,
'S_IS_LINK' => ($row['forum_type'] == FORUM_LINK) ? true : false,
'S_IS_POST' => ($row['forum_type'] == FORUM_POST) ? true : false,
- 'LINK' => phpbb_append_url_param($action, 'f', $row['forum_id']),
+ 'LINK' => $phpbb_path_helper->append_url_params($action, array('f' => $forum_id)),
));
for ($i = 0; $i < $padding; $i++)
@@ -1460,12 +1460,13 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
*/
function phpbb_add_quickmod_option($url, $option, $lang_string)
{
- global $template, $user;
+ global $template, $user, $phpbb_path_helper;
+
$lang_string = $user->lang($lang_string);
$template->assign_block_vars('quickmod', array(
'VALUE' => $option,
'TITLE' => $lang_string,
- 'LINK' => phpbb_append_url_param($url, 'action', $option),
+ 'LINK' => $phpbb_path_helper->append_url_params($url, array('action' => $option)),
));
}