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  417850345bdc5023ac9106d9d000467c355bb213 (commit)
      from  9231dad76484098ef5393673e6411f167787657f (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=417850345bdc5023ac9106d9d000467c355bb213

commit 417850345bdc5023ac9106d9d000467c355bb213
Author: Franck Villaume <[email protected]>
Date:   Fri Sep 23 16:19:11 2016 +0200

    use HTML helpers

diff --git a/src/www/admin/groupdelete.php b/src/www/admin/groupdelete.php
index fbe8b5b..1082d44 100644
--- a/src/www/admin/groupdelete.php
+++ b/src/www/admin/groupdelete.php
@@ -5,6 +5,7 @@
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2010-2011, Franck Villaume - Capgemini
  * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
+ * Copyright 2016, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -26,6 +27,8 @@ require_once '../env.inc.php';
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'admin/admin_utils.php';
 
+global $HTML;
+
 session_require_global_perm('forge_admin');
 
 $group_id = getIntFromGet('group_id');
@@ -51,9 +54,8 @@ if (getStringFromPost('submit')) {
 
 $title = _('Permanently and irretrievably delete project')._(': 
').$group->getPublicName();
 site_admin_header(array('title'=>$title));
+echo $HTML->openForm(array('action' => 
'/admin/groupdelete.php?group_id='.$group_id, 'method' => 'post'));
 ?>
-
-<form action="<?php echo '?group_id='.$group_id; ?>" method="post">
 <input id="sure" type="checkbox" value="1" name="sure" />
 <label for="sure">
 <?php echo _('Confirm Delete'); ?><br />
@@ -67,8 +69,6 @@ site_admin_header(array('title'=>$title));
 <?php echo _('Confirm Delete'); ?><br />
 </label>
 <input type="submit" name="submit" value="<?php echo _('Permanently Delete'); 
?>" />
-</form>
-
 <?php
-
+echo $HTML->closeForm();
 site_admin_footer();

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

Summary of changes:
 src/www/admin/groupdelete.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to