[Fusionforge-commits] r10479 - trunk/src/www/frs/admin

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Wed Sep 15 16:29:32 CEST 2010


Author: nerville
Date: 2010-09-15 16:29:32 +0200 (Wed, 15 Sep 2010)
New Revision: 10479

Modified:
   trunk/src/www/frs/admin/qrs.php
   trunk/src/www/frs/admin/showreleases.php
Log:
fix feedback message

Modified: trunk/src/www/frs/admin/qrs.php
===================================================================
--- trunk/src/www/frs/admin/qrs.php	2010-09-15 10:07:08 UTC (rev 10478)
+++ trunk/src/www/frs/admin/qrs.php	2010-09-15 14:29:32 UTC (rev 10479)
@@ -1,10 +1,27 @@
 <?php
 /**
- * GForge File Release Facility
+ * FusionForge File Release Facility
  *
- * Copyright 2002 GForge, LLC
- * http://gforge.org/
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2002 (c) GForge, LLC
+ * Copyright 2010 (c), FusionForge Team
+ * http://fusionforge.org/
  *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 require_once('../../env.inc.php');
@@ -56,15 +73,15 @@
 	$manual_filename = getStringFromRequest('manual_filename');
 	$group_unix_name=group_getunixname($group_id);
 
-	$feedback = '' ;
+	$warning_msg = '' ;
 	if (!$release_name) {
-		$feedback .= _('Must define a release name.');
+		$warning_msg .= _('Must define a release name.');
 	} else 	if (!$package_id) {
-		$feedback .= _('Must select a package.');
+		$warning_msg .= _('Must select a package.');
 	} else 	if (!$type_id || $type_id == "100") {
-		$feedback .= _('Must select a file type.');
+		$warning_msg .= _('Must select a file type.');
 	} else 	if (!$processor_id || $processor_id == "100")  {
-		$feedback .= _('Must select a processor type.');
+		$warning_msg .= _('Must select a processor type.');
 	} else {
 
 		//

Modified: trunk/src/www/frs/admin/showreleases.php
===================================================================
--- trunk/src/www/frs/admin/showreleases.php	2010-09-15 10:07:08 UTC (rev 10478)
+++ trunk/src/www/frs/admin/showreleases.php	2010-09-15 14:29:32 UTC (rev 10479)
@@ -3,23 +3,24 @@
  * Project Admin: Edit Releases of Packages
  *
  * Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * Copyright 2010 (c), FusionForge Team
+ * http://fusionforge.org/
  *
- * This file is part of GForge.
+ * This file is part of FusionForge.
  *
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
  *
- * GForge is distributed in the hope that it will be useful,
+ * FusionForge is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with GForge; if not, write to the Free Software
+ * along with FusionForge; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
@@ -40,8 +41,8 @@
 	exit_no_group();
 }
 if (!$package_id) {
-	header("Location /frs/admin/?group_id=$group_id?feedback=Choose+Package");
-	exit;
+    $msg = _('Choose package');
+	session_redirect('/frs/admin/?group_id='.$group_id.'?feedback='.urlencode($msg));
 }
 
 $project =& group_get_object($group_id);




More information about the Fusionforge-commits mailing list