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]; $image = $args[0];
$pathname = $CFG->dataroot.'/filter/algebra/'.$image; $pathname = $CFG->dataroot.'/filter/algebra/'.$image;
} else { } else {
print_error('No valid arguments supplied'); print_error('invalidarguments', 'error');
} }
if (!file_exists($pathname)) { if (!file_exists($pathname)) {

View file

@ -36,7 +36,7 @@
$image = $args[0]; $image = $args[0];
$pathname = $CFG->dataroot.'/filter/tex/'.$image; $pathname = $CFG->dataroot.'/filter/tex/'.$image;
} else { } else {
print_error('No valid arguments supplied'); print_error('invalidarguments', 'error');
} }
if (!file_exists($pathname)) { 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['guestnoeditprofile'] = 'The guest user cannot edit their profile';
$string['guestnoeditprofileother'] = 'The guest user profile cannot be edited'; $string['guestnoeditprofileother'] = 'The guest user profile cannot be edited';
$string['invalidaction'] = 'Invalid action parameter.'; $string['invalidaction'] = 'Invalid action parameter.';
$string['invalidarguments'] = 'No valid arguments supplied';
$string['invalidaccessparameter'] = 'Invalid access parameter.'; $string['invalidaccessparameter'] = 'Invalid access parameter.';
$string['invalidcourse'] = 'Invalid course'; $string['invalidcourse'] = 'Invalid course';
$string['invalidcoursemodule'] = 'Bad course module ID'; $string['invalidcoursemodule'] = 'Bad course module ID';