mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-14129, fix incorrect print_error() call
This commit is contained in:
parent
6e7ead3ea9
commit
c85fac1ff1
@ -35,7 +35,7 @@
|
||||
$image = $args[0];
|
||||
$pathname = $CFG->dataroot.'/filter/algebra/'.$image;
|
||||
} else {
|
||||
print_error('No valid arguments supplied');
|
||||
print_error('invalidarguments', 'error');
|
||||
}
|
||||
|
||||
if (!file_exists($pathname)) {
|
||||
|
@ -36,7 +36,7 @@
|
||||
$image = $args[0];
|
||||
$pathname = $CFG->dataroot.'/filter/tex/'.$image;
|
||||
} else {
|
||||
print_error('No valid arguments supplied');
|
||||
print_error('invalidarguments', 'error');
|
||||
}
|
||||
|
||||
if (!file_exists($pathname)) {
|
||||
|
@ -74,6 +74,7 @@ $string['groupunknown'] = 'Group $a not associated to specified course';
|
||||
$string['guestnoeditprofile'] = 'The guest user cannot edit their profile';
|
||||
$string['guestnoeditprofileother'] = 'The guest user profile cannot be edited';
|
||||
$string['invalidaction'] = 'Invalid action parameter.';
|
||||
$string['invalidarguments'] = 'No valid arguments supplied';
|
||||
$string['invalidaccessparameter'] = 'Invalid access parameter.';
|
||||
$string['invalidcourse'] = 'Invalid course';
|
||||
$string['invalidcoursemodule'] = 'Bad course module ID';
|
||||
|
Loading…
x
Reference in New Issue
Block a user