summaryrefslogtreecommitdiff
path: root/lib/exe/ajax.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-11 12:20:20 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-08-11 12:20:20 +0200
commitd84c2f1cc767bc428b84a5590e4c1c8a9c53fb36 (patch)
treee1a2ad265f9dc7fd9cd77beac672d70767917b8b /lib/exe/ajax.php
parent95905cbe48caa3de7d6d809a8f0d0cffc9df4720 (diff)
parentf73480e9843c2c7609d25f9bb340210e01ea5344 (diff)
downloadrpg-d84c2f1cc767bc428b84a5590e4c1c8a9c53fb36.tar.gz
rpg-d84c2f1cc767bc428b84a5590e4c1c8a9c53fb36.tar.bz2
Merge branch 'master' into extension_manager
* master: (33 commits) translation update translation update translation update translation update translation update changed style of `<file>` slightly to help tell it apart from `<code>` translation update translation update translation update translation update translation update translation update translation update removed now unused interwiki icons removed old, possibly never used interwiki definitions FS#2806 - fix auth capability listing in html_debug() translation update change 'debug' setting to 'security' (rather than 'danger') convert from iso-8859-1 if not utf8 add 'danger' alert to authpgsql config settings ...
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r--lib/exe/ajax.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index 9769503a7..6e2011cd9 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -219,10 +219,11 @@ function ajax_medialist(){
global $INPUT;
$NS = cleanID($INPUT->post->str('ns'));
+ $sort = $INPUT->post->bool('recent') ? 'date' : 'natural';
if ($INPUT->post->str('do') == 'media') {
tpl_mediaFileList();
} else {
- tpl_mediaContent(true);
+ tpl_mediaContent(true, $sort);
}
}