[evolvis-commits] r17555: [#1054] Evolvis Tasks: Rss Feed returns wrong entries for non exisiting projects/groud_id

papel at evolvis.org papel at evolvis.org
Tue Sep 20 11:12:03 CEST 2011


Author: papel
Date: 2011-09-20 11:12:03 +0200 (Tue, 20 Sep 2011)
New Revision: 17555

Modified:
   trunk/gforge_base/evolvisforge/gforge/www/export/rss20_tasks.php
   trunk/gforge_base/evolvisforge/gforge/www/export/rssMyPage.php
Log:
[#1054] Evolvis Tasks: Rss Feed returns wrong entries for non exisiting projects/groud_id

Modified: trunk/gforge_base/evolvisforge/gforge/www/export/rss20_tasks.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/www/export/rss20_tasks.php	2011-09-20 09:07:09 UTC (rev 17554)
+++ trunk/gforge_base/evolvisforge/gforge/www/export/rss20_tasks.php	2011-09-20 09:12:03 UTC (rev 17555)
@@ -48,6 +48,9 @@
 			$projects[]=$row['group_project_id'];
 		}
 	}
+} else {
+	beginTaskFeed(_('Error'), '', _('No group id submitted'));
+	endFeed(); //exits the script
 }
 $p=handle_getvar('group_project_ids');
 $projects = array_unique(array_merge($projects,$p)); //die projekte der getvars kommen dazu

Modified: trunk/gforge_base/evolvisforge/gforge/www/export/rssMyPage.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/www/export/rssMyPage.php	2011-09-20 09:07:09 UTC (rev 17554)
+++ trunk/gforge_base/evolvisforge/gforge/www/export/rssMyPage.php	2011-09-20 09:12:03 UTC (rev 17555)
@@ -66,17 +66,19 @@
 	print'<rss version="2.0">';
 	print'<channel>';
 
-	print util_make_url('export/rssMyPage.php');
-
 	print'<title>';
 	printf(_('Personal Page For %s'),user_getname());
 	print'</title>';
 	
+	print '<link>';
+	print util_make_url('export/rssMyPage.php');
+	print '</link>';
+	
 	print'<description>';
 	print _('Update history and information about your assigned and submitted artifacts as well assigned tasks.');
 	print'</description>';
 	
-	#print'<language>en-us</language>';
+	//print'<language>en-us</language>';
 	
 	print'<copyright>'.'Copyright 2000-'.date('Y').' '.$sys_name.'</copyright>';
 	print'<webMaster>'.$sys_admin_email.'</webMaster>';
@@ -139,7 +141,7 @@
 		print'<author>';
 		print $authorEmail;
 		print'</author>';
-		#print'<guid></guid>';
+		//print'<guid></guid>';
 		print'<pubDate>';
 		print gmdate('D, d M Y G:i:s', $lastModifiedDate);
 		print'</pubDate>';



More information about the evolvis-commits mailing list