[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1931-gae72639

Franck Villaume nerville at libremir.placard.fr.eu.org
Sun Jun 11 18:21:10 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  ae72639c0eb116565bea5cb53514a40e722bca44 (commit)
      from  81e5c339151c90ceed1dabd3002779bedb227329 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=ae72639c0eb116565bea5cb53514a40e722bca44

commit ae72639c0eb116565bea5cb53514a40e722bca44
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Jun 11 18:20:48 2017 +0200

    fix tracker display in Public Tools Widget

diff --git a/src/common/widget/Widget_ProjectPublicAreas.class.php b/src/common/widget/Widget_ProjectPublicAreas.class.php
index 68206c3..149e1b7 100644
--- a/src/common/widget/Widget_ProjectPublicAreas.class.php
+++ b/src/common/widget/Widget_ProjectPublicAreas.class.php
@@ -42,7 +42,7 @@ class Widget_ProjectPublicAreas extends Widget {
 		$group_id = $request->get('group_id');
 		$pm = ProjectManager::instance();
 		$project = $pm->getProject($group_id);
-		$HTML = $GLOBALS['HTML'];
+		global $HTML;
 		// ################# Homepage Link
 
 		$result .= html_e('div', array('class' => 'public-area-box', 'rel' => 'doap:homepage'),
@@ -64,10 +64,9 @@ class Widget_ProjectPublicAreas extends Widget {
 
 			$rows = array();
 			while ($row = db_fetch_array($res)) {
-				if (!forge_check_perm('tracker',$row['group_artifact_id'],'read')) {
-					continue;
+				if (forge_check_perm('tracker', $row['group_artifact_id'], 'read')) {
+					$rows[] = $row;
 				}
-				$rows[] = $row;
 			}
 
 			if (count($rows) < 1) {
@@ -85,7 +84,7 @@ class Widget_ProjectPublicAreas extends Widget {
 					$contentLi .= sprintf(ngettext('(<strong>%1$s</strong> open / <strong>%2$s</strong> total)', '(<strong>%1$s</strong> open / <strong>%2$s</strong> total)', $row['open_count']), $row['open_count'], $row['count']);
 					$contentLi .= '<br />';
 					$contentLi .= '<span rel="sioc:has_space" resource="" ></span>'."\n";
-					$elementLi[] = array('content' => $contentLi, 'attrs' => array('about' => $tracker_stdzd_uri, 'typeof' => 'sioc:Container'));
+					$elementsLi[] = array('content' => $contentLi, 'attrs' => array('about' => $tracker_stdzd_uri, 'typeof' => 'sioc:Container'));
 				}
 				$result .= $HTML->html_list($elementsLi, array('class' => 'tracker', 'rel' => 'doap:bug-database'));
 			}
@@ -120,7 +119,7 @@ class Widget_ProjectPublicAreas extends Widget {
 
 		if ($project->usesDocman()) {
 			$result .= '<div class="public-area-box">';
-			$link_content = $HTML->getDocmanPic('') . ' ' . _('DocManager: Project Documentation');
+			$link_content = $HTML->getDocmanPic('') . ' ' . _('Document Manager');
 			//	<a rel="sioc:container_of" xmlns:sioc="http://rdfs.org/sioc/ns#" href="'.util_make_url ('/docman/?group_id='.$group_id).'">';
 			$result .= util_make_link('/docman/?group_id='.$group_id, $link_content);
 			$result .= '</div>';

-----------------------------------------------------------------------

Summary of changes:
 src/common/widget/Widget_ProjectPublicAreas.class.php | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list