[Fusionforge-commits] r14207 - in trunk/src: common/docman/actions common/docman/views www/softwaremap

Franck VILLAUME nerville at fusionforge.org
Wed Aug 24 11:25:11 CEST 2011


Author: nerville
Date: 2011-08-24 11:25:11 +0200 (Wed, 24 Aug 2011)
New Revision: 14207

Modified:
   trunk/src/common/docman/actions/addfile.php
   trunk/src/common/docman/actions/addsubdocgroup.php
   trunk/src/common/docman/actions/editdocgroup.php
   trunk/src/common/docman/actions/trashdir.php
   trunk/src/common/docman/actions/trashfile.php
   trunk/src/common/docman/views/addfile.php
   trunk/src/common/docman/views/addsubdocgroup.php
   trunk/src/common/docman/views/editdocgroup.php
   trunk/src/common/docman/views/listfile.php
   trunk/src/common/docman/views/listtrashfile.php
   trunk/src/common/docman/views/tree.php
   trunk/src/www/softwaremap/trove_list.php
Log:
finalize the job: renaming plugin

Modified: trunk/src/common/docman/actions/addfile.php
===================================================================
--- trunk/src/common/docman/actions/addfile.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/actions/addfile.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -48,7 +48,7 @@
 $baseurl = '/docman/?group_id='.$group_id;
 $redirecturl = $baseurl.'&view=listfile&dirid='.$doc_group;
 
-// plugin hierarchy handler
+// plugin projects-hierarchy handler
 $childgroup_id = getIntFromRequest('childgroup_id');
 if ($childgroup_id) {
 	$redirecturl .= '&childgroup_id='.$childgroup_id;

Modified: trunk/src/common/docman/actions/addsubdocgroup.php
===================================================================
--- trunk/src/common/docman/actions/addsubdocgroup.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/actions/addsubdocgroup.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -36,6 +36,8 @@
 } else {
 	$urlredirect = '/docman/?group_id='.$group_id;
 }
+
+// plugin projects-hierarchy handler
 $childgroup_id = getIntFromRequest('childgroup_id');
 if ($childgroup_id) {
 	$g = group_get_object($childgroup_id);

Modified: trunk/src/common/docman/actions/editdocgroup.php
===================================================================
--- trunk/src/common/docman/actions/editdocgroup.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/actions/editdocgroup.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -38,7 +38,7 @@
 
 $urlredirect = '/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid;
 
-// plugin projects_hierarchy handler
+// plugin projects-hierarchy handler
 if ($childgroup_id) {
 	$g = group_get_object($childgroup_id);
 	$urlredirect = '/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid.'&childgroup_id='.$childgroup_id;

Modified: trunk/src/common/docman/actions/trashdir.php
===================================================================
--- trunk/src/common/docman/actions/trashdir.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/actions/trashdir.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -35,6 +35,7 @@
 	session_redirect($redirecturl.'&dirid='.$dirid.'&warning_msg='.urlencode($return_msg));
 }
 
+// plugin projects-hierarchy handler
 $childgroup_id = getIntFromRequest('childgroup_id');
 if ($childgroup_id) {
 	if (!forge_check_perm('docman', $childgroup_id, 'approve')) {

Modified: trunk/src/common/docman/actions/trashfile.php
===================================================================
--- trunk/src/common/docman/actions/trashfile.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/actions/trashfile.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -35,6 +35,7 @@
 	session_redirect($redirecturl.'&warning_msg='.urlencode($return_msg));
 }
 
+// plugin projects-hierarchy handler
 $childgroup_id = getIntFromRequest('childgroup_id');
 if ($childgroup_id) {
 	if (!forge_check_perm('docman', $childgroup_id, 'approve')) {

Modified: trunk/src/common/docman/views/addfile.php
===================================================================
--- trunk/src/common/docman/views/addfile.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/views/addfile.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -31,7 +31,7 @@
 global $group_id; // id of the group
 global $dirid; //id of the doc_group
 
-// plugin projects_hierarchy
+// plugin projects-hierarchy
 $actionurl = '?group_id='.$group_id.'&action=addfile&dirid='.$dirid;
 $redirecturl = '/docman/?group_id='.$group_id.'&view=listfile&dirid='.$dirid;
 if ($childgroup_id) {

Modified: trunk/src/common/docman/views/addsubdocgroup.php
===================================================================
--- trunk/src/common/docman/views/addsubdocgroup.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/views/addsubdocgroup.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -34,7 +34,7 @@
 	session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
 }
 
-// plugin projects_hierarchy
+// plugin projects-hierarchy
 $actionurl = '?group_id='.$group_id.'&action=addsubdocgroup&dirid='.$dirid;
 if ($childgroup_id) {
 	$g = group_get_object($childgroup_id);

Modified: trunk/src/common/docman/views/editdocgroup.php
===================================================================
--- trunk/src/common/docman/views/editdocgroup.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/views/editdocgroup.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -38,7 +38,7 @@
 	session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
 }
 
-// plugin projects_hierarchy
+// plugin projects-hierarchy
 $actionurl = '?group_id='.$group_id.'&action=editdocgroup';
 if ($childgroup_id) {
 	$g = group_get_object($childgroup_id);

Modified: trunk/src/common/docman/views/listfile.php
===================================================================
--- trunk/src/common/docman/views/listfile.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/views/listfile.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -47,7 +47,7 @@
 include ($gfcommon.'docman/views/tree.php');
 echo '</div>';
 
-// plugin projects_hierarchy
+// plugin projects-hierarchy
 $childgroup_id = getIntFromRequest('childgroup_id');
 if ($childgroup_id) {
 	if (!forge_check_perm('docman', $childgroup_id, 'read')) {

Modified: trunk/src/common/docman/views/listtrashfile.php
===================================================================
--- trunk/src/common/docman/views/listtrashfile.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/views/listtrashfile.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -38,7 +38,7 @@
 	session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
 }
 
-// plugin projects_hierarchy
+// plugin projects-hierarchy
 if ($childgroup_id) {
 	$g = group_get_object($childgroup_id);
 }

Modified: trunk/src/common/docman/views/tree.php
===================================================================
--- trunk/src/common/docman/views/tree.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/common/docman/views/tree.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -39,8 +39,8 @@
 echo '<div id="documenttree" style="height:100%">';
 $dm = new DocumentManager($g);
 $dm->getTree($dirid, $linkmenu);
-if ($g->usesPlugin('projects_hierarchy')) {
-	$projectsHierarchy = plugin_get_object('projects_hierarchy');
+if ($g->usesPlugin('projects-hierarchy')) {
+	$projectsHierarchy = plugin_get_object('projects-hierarchy');
 	$projectIDsArray = $projectsHierarchy->getFamily($group_id, 'child', true, 'validated');
 }
 if (isset($projectIDsArray) && is_array($projectIDsArray)) {

Modified: trunk/src/www/softwaremap/trove_list.php
===================================================================
--- trunk/src/www/softwaremap/trove_list.php	2011-08-24 08:51:41 UTC (rev 14206)
+++ trunk/src/www/softwaremap/trove_list.php	2011-08-24 09:25:11 UTC (rev 14207)
@@ -60,7 +60,7 @@
 echo '<h2>' . _('Project tree') . '</h2>' . "\n";
 
 $res1 = db_query_params('SELECT g.group_name FROM plugins p, group_plugin gp, groups g WHERE plugin_name = $1 and gp.group_id = g.group_id and p.plugin_id = gp.plugin_id',
-	array('projects_hierarchy'));
+	array('projects-hierarchy'));
 if ($res1) {
 	if (db_numrows($res1) > 0) {
 		$res2 = db_query_params('SELECT count(*) as used FROM plugin_projects_hierarchy_relationship',array());




More information about the Fusionforge-commits mailing list