[Fusionforge-commits] r9159 - trunk/gforge/www/survey/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Mar 19 21:47:37 CET 2010


Author: aljeux
Date: 2010-03-19 21:47:37 +0100 (Fri, 19 Mar 2010)
New Revision: 9159

Modified:
   trunk/gforge/www/survey/admin/edit_question.php
   trunk/gforge/www/survey/admin/edit_survey.php
   trunk/gforge/www/survey/admin/survey.php
Log:
Nicer message.

Modified: trunk/gforge/www/survey/admin/edit_question.php
===================================================================
--- trunk/gforge/www/survey/admin/edit_question.php	2010-03-19 20:47:32 UTC (rev 9158)
+++ trunk/gforge/www/survey/admin/edit_question.php	2010-03-19 20:47:37 UTC (rev 9159)
@@ -50,9 +50,9 @@
 					  $question_id,
 					  $group_id));
         if (db_affected_rows($result) < 1) {
-                $feedback .= _('UPDATE FAILED');
+                $feedback .= _('Update Failed');
         } else {
-                $feedback .= _('UPDATE SUCCESSFUL');
+                $feedback .= _('Update Successful');
         }
 }
 

Modified: trunk/gforge/www/survey/admin/edit_survey.php
===================================================================
--- trunk/gforge/www/survey/admin/edit_survey.php	2010-03-19 20:47:32 UTC (rev 9158)
+++ trunk/gforge/www/survey/admin/edit_survey.php	2010-03-19 20:47:37 UTC (rev 9159)
@@ -46,15 +46,15 @@
 
 	if (!isset($survey_title) || $survey_title == "")
 	{
-		$feedback .= _('UPDATE FAILED: Survey Title Required');
+		$feedback .= _('Update Failed: Survey Title Required');
 	}
 	elseif (!isset($survey_questions) || $survey_questions == "")
 	{
-		$feedback .= _('UPDATE FAILED: Survey Questions Required');
+		$feedback .= _('Update Failed: Survey Questions Required');
 	}
 	if (!isset($survey_id) || !isset($group_id) || $survey_id == "" || $group_id == "")
 	{
-		$feedback .= _('UPDATE FAILED: Missing Data');
+		$feedback .= _('Update Failed: Missing Data');
 	}
 	else
 	{
@@ -71,10 +71,10 @@
 						  $survey_id,
 						  $group_id));
 		if (db_affected_rows($result) < 1) {
-			$feedback .= _('UPDATE FAILED');
+			$feedback .= _('Update Failed');
 			echo db_error();
 		} else {
-			$feedback .= _('UPDATE SUCCESSFUL');
+			$feedback .= _('Update Successful');
 		}
 	}
 }

Modified: trunk/gforge/www/survey/admin/survey.php
===================================================================
--- trunk/gforge/www/survey/admin/survey.php	2010-03-19 20:47:32 UTC (rev 9158)
+++ trunk/gforge/www/survey/admin/survey.php	2010-03-19 20:47:37 UTC (rev 9159)
@@ -52,7 +52,7 @@
   
     if ($survey_id) { /* Modify */
 		$s->update($survey_title, $to_add, $to_del, $is_active);
-		$feedback = _('UPDATE SUCCESSFUL');
+		$feedback = _('Update Successful');
     }  else {  /* Add */
 		$s->create($survey_title, $to_add, $is_active);
 		$feedback = _('Survey Inserted');
@@ -65,7 +65,7 @@
     $is_up = getStringFromRequest('is_up');
 
     $s->updateOrder($question_id, $is_up);
-    $feedback = _('UPDATE SUCCESSFUL');
+    $feedback = _('Update Successful');
 }
 
 /* Error on previous transactions? */




More information about the Fusionforge-commits mailing list