diff options
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r-- | include/dir_fns.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php index af6f78c01..371ee0fbc 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -55,13 +55,18 @@ function dir_sort_links() { // Probably there's an easier way to do this $current_order = (($_REQUEST['order']) ? $_REQUEST['order'] : 'normal'); - $url = 'directory?'; - $tmp = $_REQUEST; + $url = 'directory?f='; + + $tmp = array_merge($_GET,$_POST); unset($tmp['order']); + unset($tmp['q']); + unset($tmp['f']); $sorturl = $url . http_build_query($tmp); - $tmp = $_REQUEST; + $tmp = array_merge($_GET,$_POST); unset($tmp['pubforums']); + unset($tmp['q']); + unset($tmp['f']); $forumsurl = $url . http_build_query($tmp); $o = replace_macros(get_markup_template('dir_sort_links.tpl'), array( |