MDL-14129, fix print_error() call
This commit is contained in:
@@ -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();
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user