Commit 6967cb2d authored by dongsheng's avatar dongsheng
Browse files

MDL-14129, fix print_error() call

parent dd41247e
......@@ -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
?>
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment