summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-08-03 17:17:58 +0200
committerChristopher Smith <chris@jalakai.co.uk>2013-08-03 17:17:58 +0200
commit00e3e3940de140e6fe6ce3c558c71a47f676b456 (patch)
treeae7c7e43867a15810354212ff5b97d6df2f85790 /inc/template.php
parent89274c0d2b04d8f0524cc37fa18bdd4cc592294a (diff)
downloadrpg-00e3e3940de140e6fe6ce3c558c71a47f676b456.tar.gz
rpg-00e3e3940de140e6fe6ce3c558c71a47f676b456.tar.bz2
fix the default ordering of media files to be "natural".
also allow the order to be specified in more places.
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 ca1c8d9d5..c8520dc26 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1229,7 +1229,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;
@@ -1259,7 +1259,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 {