[Fusionforge-commits] r14457 - trunk/src/plugins/doaprdf/include

Olivier Berger olberger at fusionforge.org
Wed Sep 21 10:18:21 CEST 2011


Author: olberger
Date: 2011-09-21 10:18:21 +0200 (Wed, 21 Sep 2011)
New Revision: 14457

Modified:
   trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php
Log:
Distinguish between public name and description

Modified: trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php
===================================================================
--- trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php	2011-09-21 08:18:15 UTC (rev 14456)
+++ trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php	2011-09-21 08:18:21 UTC (rev 14457)
@@ -60,6 +60,7 @@
 		if($accept == 'application/rdf+xml') {
 			$pm = ProjectManager::instance();
 			$project = $pm->getProject($group_id);
+			$project_shortdesc = $project->getPublicName();
 			$project_description = $project->getDescription();
 			$tags_list = NULL;
 			if (forge_get_config('use_project_tags')) {
@@ -93,8 +94,9 @@
 
       			<doap:Project rdf:about="">
       				<doap:name>'. $projectname .'</doap:name>';
-			if($project_description) {
-				$xml .= '<doap:shortdesc>'. $project_description . '</doap:shortdesc>';
+			$xml .= '<doap:shortdesc>'. $project_shortdesc . '</doap:shortdesc>';
+      		if($project_description) {
+				$xml .= '<doap:description>'. $project_description . '</doap:description>';
 			}
 			if($tags_list) {
 				$tags = split(', ',$tags_list);




More information about the Fusionforge-commits mailing list