]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14129, fix incorrect print_error() call
authordongsheng <dongsheng>
Wed, 16 Apr 2008 09:21:57 +0000 (09:21 +0000)
committerdongsheng <dongsheng>
Wed, 16 Apr 2008 09:21:57 +0000 (09:21 +0000)
filter/algebra/pix.php
filter/tex/pix.php
lang/en_utf8/error.php

index 05804d84f6b68ff3aaf892f3472064f916f759dd..80f849879e99727d8132fa12396976f45b11017b 100644 (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)) {
index 377db43ad472ccf6894e43d051f375dddfb50002..6ac983548328aa49015b8cefb79befefa4a17016 100644 (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)) {
index 7f259564abd563dc5bb614fdce4895453ad7c46b..d8f966a5d9e3dcbe808776fc522a2904b0d1c5fa 100644 (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';