MDL-14129, fix incorrect print_error() call

This commit is contained in:
dongsheng 2008-04-16 09:21:57 +00:00
parent 6e7ead3ea9
commit c85fac1ff1
3 changed files with 3 additions and 2 deletions

View File

@ -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)) {

View File

@ -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)) {

View File

@ -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';