]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-14129, fix hardcoded print_error"
authordongsheng <dongsheng>
Thu, 25 Sep 2008 01:55:39 +0000 (01:55 +0000)
committerdongsheng <dongsheng>
Thu, 25 Sep 2008 01:55:39 +0000 (01:55 +0000)
lang/en_utf8/quiz_responses.php
mod/chat/gui_header_js/insert.php
mod/quiz/report/responses/report.php

index 97a1c4d6782b7c1c710150ecf7e73188c179070c..40164fb1eabdbe936a2239366bbd6e6f505d0190 100644 (file)
@@ -1,9 +1,10 @@
 <?php // $Id$
 $string['responsesoptions'] = 'Responses options';
 $string['responsestitle'] = 'Detailed responses';
+$string['cannotloadoptions'] = 'Could not load question options';
 $string['pagesize'] = 'Page Size';
 $string['reportresponses'] = 'Responses';
 $string['responses'] = 'Responses';
 $string['responsesreport'] = 'Responses report';
 $string['responsesdownload'] = 'Responses download';
-?>
\ No newline at end of file
+?>
index 4c0d6bacfd99e0b3cc62add1483e19e7bd48677a..797feb10193f05f9b6afe31338516549bda1968c 100644 (file)
@@ -50,7 +50,7 @@
         $message->timestamp = time();
 
         if (!$DB->insert_record('chat_messages', $message) || !$DB->insert_record('chat_messages_current', $message)) {
-            print_error('Could not insert a chat message!');
+            print_error('cantinsert', 'chat');
         }
 
         $chatuser->lastmessageping = time() - 2;
index 58116ac3e0725edf722de27af2411efb954b80dc..ff106bdbed911b2f65307c341d2f75e95e367c42 100644 (file)
@@ -297,7 +297,7 @@ class quiz_responses_report extends quiz_default_report {
     
             // Load the question type specific information
             if (!get_question_options($questions)) {
-                print_error('Could not load question options');
+                print_error('cannotloadoptions', 'quiz_responses');
             }
     
             $table->define_columns($columns);
@@ -331,4 +331,4 @@ class quiz_responses_report extends quiz_default_report {
 }
 
 
-?>
\ No newline at end of file
+?>