[Fusionforge-commits] r11810 - branches/Branch_5_1/src/www/export

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Dec 15 14:49:41 CET 2010


Author: lolando
Date: 2010-12-15 14:49:40 +0100 (Wed, 15 Dec 2010)
New Revision: 11810

Modified:
   branches/Branch_5_1/src/www/export/rss20_activity.php
   branches/Branch_5_1/src/www/export/rss20_newreleases.php
   branches/Branch_5_1/src/www/export/rss20_news.php
Log:
Fixed call to class method

Modified: branches/Branch_5_1/src/www/export/rss20_activity.php
===================================================================
--- branches/Branch_5_1/src/www/export/rss20_activity.php	2010-12-15 13:29:57 UTC (rev 11809)
+++ branches/Branch_5_1/src/www/export/rss20_activity.php	2010-12-15 13:49:40 UTC (rev 11810)
@@ -42,7 +42,7 @@
 	$link = "?group_id=$group_id";
 	$description = " of ".$row['group_name'];
 
-	$admins = RBACEngine::getUsersByAllowedAction ('project_admin', $group_id) ;
+	$admins = RBACEngine::getInstance()->getUsersByAllowedAction ('project_admin', $group_id) ;
 	if (count ($admins)) {
 		$webmaster = $admins[0]->getUnixName()."@".forge_get_config('users_host')." (".$admins[0]->getRealName().")";
 	} else {

Modified: branches/Branch_5_1/src/www/export/rss20_newreleases.php
===================================================================
--- branches/Branch_5_1/src/www/export/rss20_newreleases.php	2010-12-15 13:29:57 UTC (rev 11809)
+++ branches/Branch_5_1/src/www/export/rss20_newreleases.php	2010-12-15 13:49:40 UTC (rev 11810)
@@ -44,7 +44,7 @@
 	$title = ": ".$row['group_name']." - ";
 	$link = "/project/showfiles.php?group_id=$group_id";
 	$description = " of ".$row['group_name'];
-	$admins = RBACEngine::getUsersByAllowedAction ('project_admin', $group_id) ;
+	$admins = RBACEngine::getInstance()->getUsersByAllowedAction ('project_admin', $group_id) ;
 	if (count ($admins)) {
 		$webmaster = $admins[0]->getUnixName()."@".forge_get_config('users_host')." (".$admins[0]->getRealName().")";
 	} else {

Modified: branches/Branch_5_1/src/www/export/rss20_news.php
===================================================================
--- branches/Branch_5_1/src/www/export/rss20_news.php	2010-12-15 13:29:57 UTC (rev 11809)
+++ branches/Branch_5_1/src/www/export/rss20_news.php	2010-12-15 13:49:40 UTC (rev 11810)
@@ -44,7 +44,7 @@
 	$link = "?group_id=$group_id";
 	$description = " of ".$row['group_name'];
 
-	$admins = RBACEngine::getUsersByAllowedAction ('project_admin', $group_id) ;
+	$admins = RBACEngine::getInstance()->getUsersByAllowedAction ('project_admin', $group_id) ;
 	if (count ($admins)) {
 		$webmaster = $admins[0]->getUnixName()."@".forge_get_config('users_host')." (".$admins[0]->getRealName().")";
 	} else {




More information about the Fusionforge-commits mailing list