]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14129, fix print_error() call
authordongsheng <dongsheng>
Fri, 11 Apr 2008 07:49:07 +0000 (07:49 +0000)
committerdongsheng <dongsheng>
Fri, 11 Apr 2008 07:49:07 +0000 (07:49 +0000)
admin/user/user_bulk_message.php
admin/xmldb/actions/edit_field_save/edit_field_save.class.php
admin/xmldb/actions/edit_index_save/edit_index_save.class.php
admin/xmldb/actions/edit_key_save/edit_key_save.class.php
admin/xmldb/actions/edit_table_save/edit_table_save.class.php
admin/xmldb/actions/edit_xml_file_save/edit_xml_file_save.class.php

index 0015219a21bde913719466945219848f92fbd58b..d32ee227d4fd81f6d976c4ac2ad23250073cfae9 100755 (executable)
@@ -17,7 +17,7 @@ if (empty($SESSION->bulk_users)) {
 }
 
 if (empty($CFG->messaging)) {
-    print_error("Messaging is disabled on this site");
+    print_error('messagingdisable', 'error');
 }
 
 //TODO: add support for large number of users
@@ -68,4 +68,4 @@ if ($msgform->is_cancelled()) {
 admin_externalpage_print_header();
 $msgform->display();
 admin_externalpage_print_footer();
-?>
\ No newline at end of file
+?>
index 2d991345aa749f6758b99d4695820584c4b5fdf0..5fa6bcb725c3ef8ebc6d98d59d42ce29d25c875a 100644 (file)
@@ -76,7 +76,7 @@ class edit_field_save extends XMLDBAction {
     /// Do the job, setting result as needed
 
         if (!data_submitted('nomatch')) { ///Basic prevention
-            print_error('Wrong action call');
+            print_error('wrongcall', 'error');
         }
 
     /// Get parameters
index 5dee7f1f4b58758f11277a38204a827d8ebceb67..35df0d21acc509847f6ce9f0125196763fb22f82 100644 (file)
@@ -70,7 +70,7 @@ class edit_index_save extends XMLDBAction {
     /// Do the job, setting result as needed
 
         if (!data_submitted('nomatch')) { ///Basic prevention
-            print_error('Wrong action call');
+            print_error('wrongcall', 'error');
         }
 
     /// Get parameters
index 1fb2c47433a2833e0ee4db898215a7efa13d7ad6..09dcc8769b560efdc0e760ff7a7178b5a774e173 100644 (file)
@@ -76,7 +76,7 @@ class edit_key_save extends XMLDBAction {
     /// Do the job, setting result as needed
 
         if (!data_submitted('nomatch')) { ///Basic prevention
-            print_error('Wrong action call');
+            print_error('wrongcall', 'error');
         }
 
     /// Get parameters
index a6429c5863bd0496408a67a99602b7edab7521ab..2f0d93b61b48bb557ba4202b02a11ee678de2109 100644 (file)
@@ -66,7 +66,7 @@ class edit_table_save extends XMLDBAction {
     /// Do the job, setting result as needed
 
         if (!data_submitted('nomatch')) { ///Basic prevention
-            print_error('Wrong action call');
+            print_error('wrongcall', 'error');
         }
 
     /// Get parameters
index b989394ea4fa4c8eeacf18c983838e08e8a0108e..67354a6e560c4fd0c2eb1652c72653416735c723 100644 (file)
@@ -62,7 +62,7 @@ class edit_xml_file_save extends XMLDBAction {
     /// Do the job, setting result as needed
 
         if (!data_submitted('nomatch')) { ///Basic prevention
-            print_error('Wrong action call');
+            print_error('wrongcall', 'error');
         }
 
     /// Get parameters