[Fusionforge-commits] FusionForge branch Branch_5_1 updated. 2936280ad21a2629b2d13589657bcac0b79d4d74

Thorsten Glaser mirabilos at fusionforge.org
Thu Feb 7 18:04:13 CET 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_1 has been updated
       via  2936280ad21a2629b2d13589657bcac0b79d4d74 (commit)
      from  7dd98f4d7308b47fe9ca86e6a3828704862b3322 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2936280ad21a2629b2d13589657bcac0b79d4d74
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Thu Feb 7 18:03:55 2013 +0100

    unbreak rendering RSS of group news

diff --git a/src/common/widget/Widget_ProjectLatestNews.class.php b/src/common/widget/Widget_ProjectLatestNews.class.php
index be2cf47..df6ebde 100644
--- a/src/common/widget/Widget_ProjectLatestNews.class.php
+++ b/src/common/widget/Widget_ProjectLatestNews.class.php
@@ -56,8 +56,17 @@ function displayRss() {
 		$group_id = (int)substr($owner, 1);
 //		$group_id = $request->get('group_id');
 		require_once 'www/export/rss_utils.inc';
-		rss_display_news($group_id, 10);
+//XXX the following function does not exist
+//		rss_display_news($group_id, 10);
+		echo 'Error! Use overridden getRssUrl method instead!';
     }
+	/* replacement */
+	function getRssUrl($owner_id, $owner_type) {
+		if ($owner_type != 'g') {
+			return false;
+		}
+		return '/export/rss20_news.php?group_id=' . $owner_id;
+	}
     function canBeUsedByProject(&$project) {
         return $project->usesNews();
     }
@@ -65,5 +74,3 @@ function displayRss() {
         return _('List the last 10 pieces of news posted by the project members.');
     }
 }
-
-?>

-----------------------------------------------------------------------

Summary of changes:
 src/common/widget/Widget_ProjectLatestNews.class.php |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list