From 611627231b6a712053e05734d7509b1d3751151b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 20 Nov 2008 02:59:43 +0000 Subject: Clean up the MediaRSS module a little bit: * Media_RSS_Controller::$LIMIT is now self::$page_size * We use ORM_MPTT descendant_counts() * If the page is out of bounds, put it on a boundary * Move pub_date into the controller to simplify the mrss file * Put all the view assignment in one block for easier reading * Removed stray ; from the end of lines in the mrss file Clean up ORM_MPTT a bit: * fix spelling: decendent -> descendant * Remove unnecessary order_by() clauses * Set the default for $type to null (not "all"). --- modules/media_rss/views/feed.mrss.php | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'modules/media_rss/views/feed.mrss.php') diff --git a/modules/media_rss/views/feed.mrss.php b/modules/media_rss/views/feed.mrss.php index 8c88b8a2..b3f44a17 100644 --- a/modules/media_rss/views/feed.mrss.php +++ b/modules/media_rss/views/feed.mrss.php @@ -1,5 +1,5 @@ -"; ?> +" ?> @@ -7,21 +7,20 @@ id}") ?> description ?> en-us - id}") ?>" type="application/rss+xml" /> - - id}?offset={$prevOffset}") ?>" - type="application/rss+xml" /> - - - -- cgit v1.2.3