[Fusionforge-commits] r16545 - branches/Branch_5_1/src/www/include
Franck VILLAUME
nerville at fusionforge.org
Tue Oct 16 14:29:13 CEST 2012
Author: nerville
Date: 2012-10-16 14:29:13 +0200 (Tue, 16 Oct 2012)
New Revision: 16545
Modified:
branches/Branch_5_1/src/www/include/features_boxes.php
Log:
check for use_project_full_list when needed
Modified: branches/Branch_5_1/src/www/include/features_boxes.php
===================================================================
--- branches/Branch_5_1/src/www/include/features_boxes.php 2012-10-16 12:22:08 UTC (rev 16544)
+++ branches/Branch_5_1/src/www/include/features_boxes.php 2012-10-16 12:29:13 UTC (rev 16545)
@@ -3,6 +3,7 @@
*
* Copyright 1999-2001 (c) VA Linux Systems
* Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
+ * Copyright 2012, Franck Villaume - TrivialDev
* http://fusionforge.org
*
* This file is part of FusionForge. FusionForge is free software;
@@ -153,11 +154,11 @@
$gforge = new FusionForge();
$return = '<p>';
$return .= _('Hosted Projects').': ';
- if (forge_get_config('use_trove')) {
+ if (forge_get_config('use_project_full_list')) {
$return .= '<a href="softwaremap/full_list.php">';
}
$return .= '<strong>'.number_format($gforge->getNumberOfPublicHostedProjects()).'</strong>';
- if (forge_get_config('use_trove')) {
+ if (forge_get_config('use_project_full_list')) {
$return .= '</a>';
}
$return .= "</p><p>";
@@ -193,8 +194,10 @@
$t_return = $return;
$return = '<table summary="">' . $t_return . "</table>\n";
}
-
- $return .= '<div class="align-center">'.util_make_link ('/softwaremap/full_list.php', _('All newest projects'), array('class' => 'dot-link')).'</div>';
+
+ if (forge_get_config('use_project_full_list')) {
+ $return .= '<div class="align-center">'.util_make_link ('/softwaremap/full_list.php', _('All newest projects'), array('class' => 'dot-link')).'</div>';
+ }
return $return;
}
More information about the Fusionforge-commits
mailing list