diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/directory.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php index 38dd9687a..3e94d6395 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -158,7 +158,11 @@ function directory_content(&$a) { if(! is_null($pubforums)) $query .= '&pubforums=' . intval($pubforums); - $sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : 'date'); + $directory_sort_order = get_config('system','directory_sort_order'); + if(! $directory_sort_order) + $directory_sort_order = 'date'; + + $sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : $directory_sort_order); if($sort_order) $query .= '&order=' . urlencode($sort_order); |