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 136163f49706b13f00e8a45acd35ab80e5fa607d (commit)
from aebe8575821b75a072347e09c1eee5f64b95fade (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=136163f49706b13f00e8a45acd35ab80e5fa607d
commit 136163f49706b13f00e8a45acd35ab80e5fa607d
Author: Franck Villaume <[email protected]>
Date: Sun Aug 28 13:08:01 2016 +0200
use util_make_link helper
diff --git a/src/common/include/tag_cloud.php b/src/common/include/tag_cloud.php
index 69f286f..ad09a96 100644
--- a/src/common/include/tag_cloud.php
+++ b/src/common/include/tag_cloud.php
@@ -1,6 +1,7 @@
<?php
/**
* Copyright (C) 2008-2009 Alcatel-Lucent
+ * Copyright 2016, Franck Villaume - TrivialDev
*
* This file is part of FusionForge. FusionForge is free software;
* you can redistribute it and/or modify it under the terms of the
@@ -43,7 +44,7 @@
$NB_MAX = 20;
$NB_SIZE = 5;
$CLASS_PREFIX = 'tag';
-$SELECTED_STYLE = 'style="text-decoration:overline underline;"';
+$SELECTED_STYLE = 'text-decoration:overline underline';
/**
* tag_cloud() - This function displays a tag cloug with the tags defined by
projects.
@@ -153,11 +154,12 @@ function tag_cloud($params = array()) {
foreach ($tag_count as $name => $count) {
if ($count < $count_min) continue;
$size = intval(1 + ($count - $count_min) * $a);
- $return .= '<a href="/softwaremap/tag_cloud.php?tag='
- . urlencode($name)
- . '" class="' . $params['class_prefix'] . $size . '" '
- . (($name == $params['selected']) ?
$params['selected_style'] : '' )
- . '>' . htmlspecialchars($name) . '</a> ';
+ $linkAttr = array();
+ $linkAttr['class'] = $params['class_prefix'] . $size;
+ if ($name == $params['selected']) {
+ $linkAttr['style'] = $params['selected_style'];
+ }
+ $return .=
util_make_link('/softwaremap/tag_cloud.php?tag='.urlencode($name),
htmlspecialchars($name), $linkAttr);
}
}
-----------------------------------------------------------------------
Summary of changes:
src/common/include/tag_cloud.php | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits