[Fusionforge-commits] r14604 - trunk/src/plugins/mantisbt/common

Franck VILLAUME nerville at fusionforge.org
Tue Oct 11 13:17:09 CEST 2011


Author: nerville
Date: 2011-10-11 13:17:09 +0200 (Tue, 11 Oct 2011)
New Revision: 14604

Modified:
   trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
Log:
fix widget listing when plugin not unable

Modified: trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
===================================================================
--- trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php	2011-10-11 11:16:44 UTC (rev 14603)
+++ trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php	2011-10-11 11:17:09 UTC (rev 14604)
@@ -637,6 +637,10 @@
 	}
 
 	function widgets($params) {
+		$group = group_get_object($GLOBALS['group_id']);
+		if ( !$group || !$group->usesPlugin ( $this->name ) ) {
+			return false;
+		}
  		require_once('common/widget/WidgetLayoutManager.class.php');
 		if ($params['owner_type'] == WidgetLayoutManager::OWNER_TYPE_GROUP) {
 			$params['fusionforge_widgets'][] = 'plugin_mantisbt_project_latestissues';




More information about the Fusionforge-commits mailing list