[Fusionforge-commits] r14043 - in branches/Branch_5_1: . src/www/admin src/www/project/admin

Roland Mas lolando at fusionforge.org
Tue Aug 2 16:23:20 CEST 2011


Author: lolando
Date: 2011-08-02 16:23:20 +0200 (Tue, 02 Aug 2011)
New Revision: 14043

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/www/admin/globalroledelete.php
   branches/Branch_5_1/src/www/project/admin/roledelete.php
Log:
UI fixes to role deletion pages

Modified: branches/Branch_5_1/src/www/admin/globalroledelete.php
===================================================================
--- branches/Branch_5_1/src/www/admin/globalroledelete.php	2011-08-02 14:23:10 UTC (rev 14042)
+++ branches/Branch_5_1/src/www/admin/globalroledelete.php	2011-08-02 14:23:20 UTC (rev 14043)
@@ -58,7 +58,5 @@
 		$error_msg = _('Error: Please confirm the deletion of the role.');
 	}
 
-	if (!isset($error_msg)) {
-		session_redirect('/admin/globalroleedit.php?role_id='.$role_id.'&error_msg='.urlencode($error_msg));
-	}
+	session_redirect('/admin/globalroleedit.php?role_id='.$role_id.'&error_msg='.urlencode($error_msg));
 }

Modified: branches/Branch_5_1/src/www/project/admin/roledelete.php
===================================================================
--- branches/Branch_5_1/src/www/project/admin/roledelete.php	2011-08-02 14:23:10 UTC (rev 14042)
+++ branches/Branch_5_1/src/www/project/admin/roledelete.php	2011-08-02 14:23:20 UTC (rev 14043)
@@ -67,9 +67,7 @@
 		$error_msg = _('Error: Please check "I\'m Sure" to confirm or return to previous page to cancel.');
 	}
 
-	if (!isset($error_msg)) {
-		session_redirect('/project/admin/users.php?group_id='.$group_id.'&error_msg='.urlencode($error_msg));
-	}
+	session_redirect('/project/admin/users.php?group_id='.$group_id.'&error_msg='.urlencode($error_msg));
 }
 
 $title = sprintf(_('Permanently Delete Role %s'), $role->getName());




More information about the Fusionforge-commits mailing list