summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-01-08 11:52:56 +0100
committerAndreas Gohr <andi@splitbrain.org>2015-01-08 11:52:56 +0100
commit508170cfb7b7722025748f9a3778cd8cf34fc64e (patch)
tree5d660c3768a2919d4cc08114e49c91faeb26676b
parent8552954b29e133ddab7f6b0d1dff7a77d40a5452 (diff)
parent38c6f603e006f27fd6194d1d2c14d3087d0e0cc9 (diff)
downloadrpg-508170cfb7b7722025748f9a3778cd8cf34fc64e.tar.gz
rpg-508170cfb7b7722025748f9a3778cd8cf34fc64e.tar.bz2
Merge pull request #997 from BCLibCoop/master
Optionally render RSS unsorted.
-rw-r--r--inc/parser/handler.php1
-rw-r--r--inc/parser/xhtml.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php
index d96a01a60..731c19828 100644
--- a/inc/parser/handler.php
+++ b/inc/parser/handler.php
@@ -526,6 +526,7 @@ class Doku_Handler {
$p['author'] = (preg_match('/\b(by|author)/',$params));
$p['date'] = (preg_match('/\b(date)/',$params));
$p['details'] = (preg_match('/\b(desc|detail)/',$params));
+ $p['nosort'] = (preg_match('/\b(nosort)\b/',$params));
if (preg_match('/\b(\d+)([dhm])\b/',$params,$match)) {
$period = array('d' => 86400, 'h' => 3600, 'm' => 60);
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index f1703111e..c68d206be 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -1178,6 +1178,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
error_reporting($elvl);
}
+ if($params['nosort']) $feed->enable_order_by_date(false);
+
//decide on start and end
if($params['reverse']) {
$mod = -1;