aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-03 15:20:40 -0800
committerfriendica <info@friendica.com>2013-11-03 15:20:40 -0800
commitcea11c94984f0f824bc5f1da260bd8ee4ea109cd (patch)
tree88a4caacf03e5b65a9822255f56e92af1ce442ce
parent72287b24783edcaf44d1d93bb901729d1af0375a (diff)
downloadvolse-hubzilla-cea11c94984f0f824bc5f1da260bd8ee4ea109cd.tar.gz
volse-hubzilla-cea11c94984f0f824bc5f1da260bd8ee4ea109cd.tar.bz2
volse-hubzilla-cea11c94984f0f824bc5f1da260bd8ee4ea109cd.zip
make date order the default for the directory
-rw-r--r--mod/dirsearch.php2
-rw-r--r--view/tpl/dir_sort_links.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 66f9a6f4c..9f8ff6a86 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -131,7 +131,7 @@ function dirsearch_content(&$a) {
}
- if($sort_order == 'date')
+ if($sort_order == 'normal')
$order = " order by xchan_name_date desc ";
elseif($sort_order == 'reverse')
$order = " order by xchan_name desc ";
diff --git a/view/tpl/dir_sort_links.tpl b/view/tpl/dir_sort_links.tpl
index 58498e4d8..d78aec1f5 100644
--- a/view/tpl/dir_sort_links.tpl
+++ b/view/tpl/dir_sort_links.tpl
@@ -1,6 +1,6 @@
<div class="widget" id="dir_sort_links">
<h3>{{$header}}</h3>
-<a href="directory?f=&order=">{{$normal}}</a><br />
+<a href="directory?f=&order=normal">{{$normal}}</a><br />
<a href="directory?f=&order=reverse">{{$reverse}}</a><br />
<a href="directory?f=&order=date">{{$date}}</a><br />
</div>