[Fusionforge-commits] FusionForge branch master updated. 98bae64e6ff8d4e5f3a28d0d0a729b797c5a5b90

Franck VILLAUME nerville at fusionforge.org
Sat Jun 29 14:46:56 CEST 2013


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  98bae64e6ff8d4e5f3a28d0d0a729b797c5a5b90 (commit)
      from  a14ff6755842e7b26fdf674ebfde091faad6a4a5 (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 -----------------------------------------------------------------
commit 98bae64e6ff8d4e5f3a28d0d0a729b797c5a5b90
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Jun 29 14:46:12 2013 +0200

    fix warning when plugin does not provide TABS_TOOLTIP

diff --git a/src/www/themes/funky/Theme.class.php b/src/www/themes/funky/Theme.class.php
index b484e4d..4e95b46 100644
--- a/src/www/themes/funky/Theme.class.php
+++ b/src/www/themes/funky/Theme.class.php
@@ -277,7 +277,7 @@ class Theme extends Layout {
 			// middle part
 			$return .= '<td class="tg-middle" style="width:'.$tabwidth.'%;"><a ';
 			$return .= 'id="'.md5($TABS_DIRS[$i]).'" ';
-			if ($use_tooltips)
+			if ($use_tooltips && isset($TABS_TOOLTIPS[$i]))
 				$return .= 'class="tabtitle" title="'.$TABS_TOOLTIPS[$i].'" ';
 			$return .= 'href="'.$TABS_DIRS[$i].'">' . "\n";
 			$return .= '<span';
diff --git a/src/www/themes/gforge/Theme.class.php b/src/www/themes/gforge/Theme.class.php
index 657c84d..d8ad5a4 100644
--- a/src/www/themes/gforge/Theme.class.php
+++ b/src/www/themes/gforge/Theme.class.php
@@ -5,7 +5,7 @@
  * Copyright 2010 (c) FusionForge Team
  * Copyright 2010-2011, Alain Peyrat - Alcatel-Lucent
  * Copyright 2011, Franck Villaume - Capgemini
- * Copyright 2011-2012, Franck Villaume - TrivialDev
+ * Copyright 2011-2013, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -304,8 +304,8 @@ class Theme extends Layout {
 			}
 			$return .= '>' . "\n";
 			$return .= '<a ';
-			if ($use_tooltips)
-				$return .= ' title="'.$TABS_TOOLTIPS[$i].'"';
+			if ($use_tooltips && isset($TABS_TOOLTIPS[$i]))
+					$return .= ' title="'.$TABS_TOOLTIPS[$i].'"';
 
 			$return .= ' href="'.$TABS_DIRS[$i].'">'.$TABS_TITLES[$i].'</a>' . "\n";
 			$return .= '</div>';

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

Summary of changes:
 src/www/themes/funky/Theme.class.php  |    2 +-
 src/www/themes/gforge/Theme.class.php |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list