[Fusionforge-commits] r15614 - in branches/Branch_5_1: . src/common/widget src/debian

Roland Mas lolando at fusionforge.org
Wed May 30 15:06:11 CEST 2012


Author: lolando
Date: 2012-05-30 15:06:09 +0200 (Wed, 30 May 2012)
New Revision: 15614

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php
   branches/Branch_5_1/src/debian/changelog
Log:
Fixed wrong link for custom homepages (thanks to Olivier Berger)

Modified: branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php
===================================================================
--- branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php	2012-05-30 12:44:54 UTC (rev 15613)
+++ branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php	2012-05-30 13:06:09 UTC (rev 15614)
@@ -39,7 +39,11 @@
 		// ################# Homepage Link
 
 		echo '<div class="public-area-box" rel="doap:homepage">';
-		echo util_make_link ('http://' . $project->getHomePage(), $HTML->getHomePic(_('Home Page')) . ' ' . _('Project Home Page'), false, true);
+		if ( util_check_url($project->getHomePage())) {
+			echo util_make_link ($project->getHomePage(), $HTML->getHomePic(_('Home Page')) . ' ' . _('Project Home Page'), false, true);
+                } else {
+			echo util_make_link ('http://' . $project->getHomePage(), $HTML->getHomePic(_('Home Page')) . ' ' . _('Project Home Page'), false, true);
+		}
 		echo "</div>\n";
 
 		// ################## ArtifactTypes

Modified: branches/Branch_5_1/src/debian/changelog
===================================================================
--- branches/Branch_5_1/src/debian/changelog	2012-05-30 12:44:54 UTC (rev 15613)
+++ branches/Branch_5_1/src/debian/changelog	2012-05-30 13:06:09 UTC (rev 15614)
@@ -1,3 +1,10 @@
+fusionforge (5.1.1-7+1) UNRELEASED; urgency=low
+
+  * Fixed wrong link for custom homepage, thanks to Olivier Berger for the
+    patch (closes: #675090).
+
+ -- Roland Mas <lolando at debian.org>  Wed, 30 May 2012 15:05:09 +0200
+
 fusionforge (5.1.1-7) unstable; urgency=low
 
   * Many fixes from the 5.1 upstream branch.




More information about the Fusionforge-commits mailing list