[Fusionforge-commits] r14515 - branches/Branch_5_1/src/common/widget

Julien HEYMAN jheyman at fusionforge.org
Fri Sep 30 12:53:24 CEST 2011


Author: jheyman
Date: 2011-09-30 12:53:24 +0200 (Fri, 30 Sep 2011)
New Revision: 14515

Modified:
   branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php
Log:
Fix ftp url in project home page if sys_use_project_vhost

Modified: branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php
===================================================================
--- branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php	2011-09-30 10:48:07 UTC (rev 14514)
+++ branches/Branch_5_1/src/common/widget/Widget_ProjectPublicAreas.class.php	2011-09-30 10:53:24 UTC (rev 14515)
@@ -185,7 +185,11 @@
 
 										$link_content = $HTML->getFtpPic('') . ' ' . _('Anonymous FTP Space');
 										//		print '<a rel="doap:anonymous root" href="ftp://' . $project->getUnixName() . '.' . forge_get_config('web_host') . '/pub/'. $project->getUnixName() .'/">';
-										print util_make_link('ftp://' . $project->getUnixName() . '.' . forge_get_config('web_host') . '/pub/'. $project->getUnixName(), $link_content, false, true);
+										if (forge_get_config('use_project_vhost')) {
+											print util_make_link('ftp://' . $project->getUnixName() . '.' . forge_get_config('web_host') . '/pub/'. $project->getUnixName(), $link_content, false, true);
+										} else {
+											print util_make_link('ftp://' . forge_get_config('web_host') . '/pub/'. $project->getUnixName(), $link_content, false, true);
+										}
 										echo "\n</div>\n";
 									}
 								}




More information about the Fusionforge-commits mailing list