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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu Sep 16 21:46:41 CEST 2010


Author: aljeux
Date: 2010-09-16 21:46:40 +0200 (Thu, 16 Sep 2010)
New Revision: 10525

Modified:
   trunk/src/www/frs/admin/editrelease.php
Log:
Use error_msg for error messages.

Modified: trunk/src/www/frs/admin/editrelease.php
===================================================================
--- trunk/src/www/frs/admin/editrelease.php	2010-09-16 19:46:34 UTC (rev 10524)
+++ trunk/src/www/frs/admin/editrelease.php	2010-09-16 19:46:40 UTC (rev 10525)
@@ -95,12 +95,12 @@
 			exit_error('Error','Attempted File Upload Attack');
 		}
 		if ($uploaded_notes['type'] !== 'text/plain') {
-			$feedback .= _('Release Notes Are not in Text');
+			$error_msg .= _('Release Notes Are not in Text').'<br />';
 			$exec_changes = false;
 		} else {
 			$notes = addslashes(fread(fopen($uploaded_notes['tmp_name'],'r'),$uploaded_notes['size']));
 			if (strlen($notes) < 20) {
-				$feedback .= _('Release Notes Are Too Small');
+				$error_msg .= _('Release Notes Are Too Small').'<br />';
 				$exec_changes = false;
 			}
 		}
@@ -114,12 +114,12 @@
 			exit_error('Error','Attempted File Upload Attack');
 		}
 		if ($uploaded_changes['type'] !== 'text/plain') {
-			$feedback .= _('Change Log Is not in Text');
+			$error_msg .= _('Change Log Is not in Text').'<br />';
 			$exec_changes = false;
 		} else {
 			$changes = addslashes(fread(fopen($uploaded_changes['tmp_name'],'r'), $uploaded_changes['size']));
 			if (strlen($changes) < 20) {
-				$feedback .= _('Change Log Is Too Small');
+				$error_msg .= _('Change Log Is Too Small').'<br />';
 				$exec_changes = false;
 			}
 		}
@@ -193,7 +193,7 @@
 				}
 			}
 		} else {
-			exit_error('Error',_('Missing Parameters'));
+			$error_msg .= _('File not deleted: you did not check "I\'m Sure"');
 		}
 	// Otherwise update the file information
 	} else {




More information about the Fusionforge-commits mailing list