[Fusionforge-commits] r7517 - trunk/gforge/plugins/extratabs/www

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Apr 29 11:00:55 CEST 2009


Author: lolando
Date: 2009-04-29 11:00:54 +0200 (Wed, 29 Apr 2009)
New Revision: 7517

Modified:
   trunk/gforge/plugins/extratabs/www/index.php
Log:
Fixed form handling

Modified: trunk/gforge/plugins/extratabs/www/index.php
===================================================================
--- trunk/gforge/plugins/extratabs/www/index.php	2009-04-29 09:00:37 UTC (rev 7516)
+++ trunk/gforge/plugins/extratabs/www/index.php	2009-04-29 09:00:54 UTC (rev 7517)
@@ -11,7 +11,6 @@
 require_once $gfcommon.'/include/FusionForge.class.php';
 
 $group_id = getIntFromRequest ('group_id') ;
-$func = getStringFromRequest ('func') ;
 
 session_require(array('group'=>$group_id,'admin_flags'=>'A'));
 
@@ -126,7 +125,8 @@
 <p><?php echo _('You can add your own tabs in the menu bar with the form below.') ?></p>
 <p>
 
-<form name="new_tab" action="<?php echo util_make_url ('/plugins/extratabs/?group_id='.$group->getID()); ?>" method="post">
+<form name="new_tab" action="<?php echo util_make_url ('/plugins/extratabs/'); ?>" method="post">
+<input type="hidden" name="group_id" value="<?php echo $group->getID() ?>" />
 <input type="hidden" name="addtab" value="1" />
 <input type="hidden" name="newid" value="<?php echo $newid ?>" />
 	<strong><?php echo _('Name of the tab:') ?></strong>
@@ -147,7 +147,8 @@
 		 WHERE group_id='$group_id' ORDER BY index ASC");
 
 ?></p><p>
-<form name="change_tab" action="<?php echo util_make_url ('/plugins/extratabs?group_id='.$group->getID()); ?>" method="post">
+<form name="change_tab" action="<?php echo util_make_url ('/plugins/extratabs/'); ?>" method="post">
+<input type="hidden" name="group_id" value="<?php echo $group->getID() ?>" />
 <?php 
 	echo _('Tab to modify:')
 ?>




More information about the Fusionforge-commits mailing list