aboutsummaryrefslogtreecommitdiffstats
path: root/include/dir_fns.php
diff options
context:
space:
mode:
authorfriendica <redmatrix@redmatrix.me>2015-04-19 23:04:14 -0700
committerfriendica <redmatrix@redmatrix.me>2015-04-19 23:04:14 -0700
commit9cc8b44579ad0620d79c675b3449461db8d4e732 (patch)
tree1832d87cac5ad4381faa92fb90ace07c4899c724 /include/dir_fns.php
parent4383564777c84408880432d2ebd9c5ac73d8afe9 (diff)
downloadvolse-hubzilla-9cc8b44579ad0620d79c675b3449461db8d4e732.tar.gz
volse-hubzilla-9cc8b44579ad0620d79c675b3449461db8d4e732.tar.bz2
volse-hubzilla-9cc8b44579ad0620d79c675b3449461db8d4e732.zip
issue #157, provide default directory sort order
Diffstat (limited to 'include/dir_fns.php')
-rw-r--r--include/dir_fns.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index d1e26b637..ebaa7c427 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -116,7 +116,13 @@ function dir_sort_links() {
// Build urls without order and pubforums so it's easy to tack on the changed value
// Probably there's an easier way to do this
- $current_order = (($_REQUEST['order']) ? $_REQUEST['order'] : 'date');
+
+ $directory_sort_order = get_config('system','directory_sort_order');
+ if(! $directory_sort_order)
+ $directory_sort_order = 'date';
+
+
+ $current_order = (($_REQUEST['order']) ? $_REQUEST['order'] : $directory_sort_order);
$url = 'directory?f=';
$tmp = array_merge($_GET,$_POST);