[Fusionforge-commits] r9688 - trunk/gforge/plugins/projectlabels/common

Roland Mas lolando at libremir.placard.fr.eu.org
Tue May 4 22:53:51 CEST 2010


Author: lolando
Date: 2010-05-04 22:53:50 +0200 (Tue, 04 May 2010)
New Revision: 9688

Added:
   trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class.php
Removed:
   trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class
Modified:
   trunk/gforge/plugins/projectlabels/common/projectlabels-init.php
Log:
Renamed file for consistency

Deleted: trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class
===================================================================
--- trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class	2010-05-04 20:50:16 UTC (rev 9687)
+++ trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class	2010-05-04 20:53:50 UTC (rev 9688)
@@ -1,42 +0,0 @@
-<?php
-
-class ProjectLabelsPlugin extends Plugin {
-	function ProjectLabelsPlugin () {
-		$this->Plugin() ;
-		$this->name = "projectlabels" ;
-		$this->text = "Project labels";
-		$this->hooks[] = "project_before_description" ;
-		$this->hooks[] = "site_admin_option_hook" ;
-	}
-
-	function CallHook ($hookname, $params) {
-		global $HTML;
-		
-		if ($hookname == "site_admin_option_hook") {
-			echo '<li>' . util_make_link ('/plugins/projectlabels/index.php',
-						      _('Project labels')) . '</li>';
-		} elseif ($hookname == "project_before_description") {
-			$group_id=$params['group_id'];
-			$project = &group_get_object($group_id);
-			if (!$project || !is_object($project))
-				return;
-			if ($project->isError())
-				return;
-			if (!$project->isProject())
-				return;
-			$res_tabs = db_query_params ('SELECT plugin_projectlabels_labels.label_text FROM plugin_projectlabels_labels, plugin_projectlabels_group_labels
-					      WHERE plugin_projectlabels_group_labels.group_id=$1 AND plugin_projectlabels_group_labels.label_id = plugin_projectlabels_labels.label_id',
-						     array ($group_id));
-			while ($row_tab = db_fetch_array($res_tabs)) {
-				print ($row_tab['label_text']);
-			}
-		}
-	}
-}
-
-// Local Variables:
-// mode: php
-// c-file-style: "bsd"
-// End:
-
-?>

Copied: trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class.php (from rev 9685, trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class)
===================================================================
--- trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class.php	                        (rev 0)
+++ trunk/gforge/plugins/projectlabels/common/ProjectLabelsPlugin.class.php	2010-05-04 20:53:50 UTC (rev 9688)
@@ -0,0 +1,42 @@
+<?php
+
+class ProjectLabelsPlugin extends Plugin {
+	function ProjectLabelsPlugin () {
+		$this->Plugin() ;
+		$this->name = "projectlabels" ;
+		$this->text = "Project labels";
+		$this->hooks[] = "project_before_description" ;
+		$this->hooks[] = "site_admin_option_hook" ;
+	}
+
+	function CallHook ($hookname, $params) {
+		global $HTML;
+		
+		if ($hookname == "site_admin_option_hook") {
+			echo '<li>' . util_make_link ('/plugins/projectlabels/index.php',
+						      _('Project labels')) . '</li>';
+		} elseif ($hookname == "project_before_description") {
+			$group_id=$params['group_id'];
+			$project = &group_get_object($group_id);
+			if (!$project || !is_object($project))
+				return;
+			if ($project->isError())
+				return;
+			if (!$project->isProject())
+				return;
+			$res_tabs = db_query_params ('SELECT plugin_projectlabels_labels.label_text FROM plugin_projectlabels_labels, plugin_projectlabels_group_labels
+					      WHERE plugin_projectlabels_group_labels.group_id=$1 AND plugin_projectlabels_group_labels.label_id = plugin_projectlabels_labels.label_id',
+						     array ($group_id));
+			while ($row_tab = db_fetch_array($res_tabs)) {
+				print ($row_tab['label_text']);
+			}
+		}
+	}
+}
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>

Modified: trunk/gforge/plugins/projectlabels/common/projectlabels-init.php
===================================================================
--- trunk/gforge/plugins/projectlabels/common/projectlabels-init.php	2010-05-04 20:50:16 UTC (rev 9687)
+++ trunk/gforge/plugins/projectlabels/common/projectlabels-init.php	2010-05-04 20:53:50 UTC (rev 9688)
@@ -1,6 +1,6 @@
 <?php
 
-require_once (forge_get_config('plugins_path').'/projectlabels/common/ProjectLabelsPlugin.class') ;
+require_once (forge_get_config('plugins_path').'/projectlabels/common/ProjectLabelsPlugin.class.php') ;
 
 $ProjectLabelsPluginObject = new ProjectLabelsPlugin ;
 




More information about the Fusionforge-commits mailing list