From: dongsheng Date: Fri, 11 Apr 2008 07:49:07 +0000 (+0000) Subject: MDL-14129, fix print_error() call X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6967cb2d42a126488895f1e48b1061685b111ebf;p=moodle.git MDL-14129, fix print_error() call --- diff --git a/admin/user/user_bulk_message.php b/admin/user/user_bulk_message.php index 0015219a21..d32ee227d4 100755 --- a/admin/user/user_bulk_message.php +++ b/admin/user/user_bulk_message.php @@ -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 +?> diff --git a/admin/xmldb/actions/edit_field_save/edit_field_save.class.php b/admin/xmldb/actions/edit_field_save/edit_field_save.class.php index 2d991345aa..5fa6bcb725 100644 --- a/admin/xmldb/actions/edit_field_save/edit_field_save.class.php +++ b/admin/xmldb/actions/edit_field_save/edit_field_save.class.php @@ -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 diff --git a/admin/xmldb/actions/edit_index_save/edit_index_save.class.php b/admin/xmldb/actions/edit_index_save/edit_index_save.class.php index 5dee7f1f4b..35df0d21ac 100644 --- a/admin/xmldb/actions/edit_index_save/edit_index_save.class.php +++ b/admin/xmldb/actions/edit_index_save/edit_index_save.class.php @@ -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 diff --git a/admin/xmldb/actions/edit_key_save/edit_key_save.class.php b/admin/xmldb/actions/edit_key_save/edit_key_save.class.php index 1fb2c47433..09dcc8769b 100644 --- a/admin/xmldb/actions/edit_key_save/edit_key_save.class.php +++ b/admin/xmldb/actions/edit_key_save/edit_key_save.class.php @@ -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 diff --git a/admin/xmldb/actions/edit_table_save/edit_table_save.class.php b/admin/xmldb/actions/edit_table_save/edit_table_save.class.php index a6429c5863..2f0d93b61b 100644 --- a/admin/xmldb/actions/edit_table_save/edit_table_save.class.php +++ b/admin/xmldb/actions/edit_table_save/edit_table_save.class.php @@ -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 diff --git a/admin/xmldb/actions/edit_xml_file_save/edit_xml_file_save.class.php b/admin/xmldb/actions/edit_xml_file_save/edit_xml_file_save.class.php index b989394ea4..67354a6e56 100644 --- a/admin/xmldb/actions/edit_xml_file_save/edit_xml_file_save.class.php +++ b/admin/xmldb/actions/edit_xml_file_save/edit_xml_file_save.class.php @@ -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