summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-04 03:36:58 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-08-04 03:36:58 -0700
commit9ead67782d3bf9976a4bd1f0d748d59094ed6bd6 (patch)
tree05c9f477c4b9106f11fae8cfbe88dcd10394256b /inc/template.php
parent4597d90e72d68722de1ad9c0b63f316479c8767a (diff)
parentc84391dcf5eb8a23bcae9e558285975c6b47e7f1 (diff)
downloadrpg-9ead67782d3bf9976a4bd1f0d748d59094ed6bd6.tar.gz
rpg-9ead67782d3bf9976a4bd1f0d748d59094ed6bd6.tar.bz2
Merge pull request #263 from splitbrain/mediamanager_list_ordering
Mediamanager list ordering
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index ea73b01b6..8f41ce65b 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1233,7 +1233,7 @@ function tpl_localeFN($id) {
* @param bool $fromajax - set true when calling this function via ajax
* @author Andreas Gohr <andi@splitbrain.org>
*/
-function tpl_mediaContent($fromajax = false) {
+function tpl_mediaContent($fromajax = false, $sort='natural') {
global $IMG;
global $AUTH;
global $INUSE;
@@ -1263,7 +1263,7 @@ function tpl_mediaContent($fromajax = false) {
if($do == 'filesinuse') {
media_filesinuse($INUSE, $IMG);
} elseif($do == 'filelist') {
- media_filelist($NS, $AUTH, $JUMPTO);
+ media_filelist($NS, $AUTH, $JUMPTO,false,$sort);
} elseif($do == 'searchlist') {
media_searchlist($INPUT->str('q'), $NS, $AUTH);
} else {