diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-01-07 21:53:22 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-01-07 21:53:22 -0800 |
commit | 38c6f603e006f27fd6194d1d2c14d3087d0e0cc9 (patch) | |
tree | 5d660c3768a2919d4cc08114e49c91faeb26676b /inc/parser/xhtml.php | |
parent | 8552954b29e133ddab7f6b0d1dff7a77d40a5452 (diff) | |
download | rpg-38c6f603e006f27fd6194d1d2c14d3087d0e0cc9.tar.gz rpg-38c6f603e006f27fd6194d1d2c14d3087d0e0cc9.tar.bz2 |
Optionally render RSS unsorted.
By default, SimplePie sorts RSS entries by the the date on each entry.
If some cases, mostly where RSS is used as a input format for another
service, rendering the order as-is is better than having it sorted.
This patch adds a new parameter for the rss keyword, 'nosort', which can
be used to disable SimplePie's sorting.
This makes it possible to correctly display RSS feeds from "Remember The
Milk", which have a complex order from the system.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 2 |
1 files changed, 2 insertions, 0 deletions
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; |