]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14129 Fix dongsheng's fixes and make dongsheng happy :)
authorethem <ethem>
Fri, 20 Jun 2008 10:48:29 +0000 (10:48 +0000)
committerethem <ethem>
Fri, 20 Jun 2008 10:48:29 +0000 (10:48 +0000)
enrol/authorize/enrol.php
enrol/authorize/index.php
lang/en_utf8/enrol_authorize.php

index 6cceb911c1e4386549e5fa96a30f20e9b79fc56d..ee824ba477a360a44075d7936d0bb5e71b1123ed 100755 (executable)
@@ -92,7 +92,7 @@ class enrolment_plugin_authorize
                         break;
                 }
                 if (!empty($authorizeerror)) {
-                    print_error('authorizeerror');
+                    print_error('authorizeerror', 'enrol_authorize', '', $authorizeerror);
                 }
             }
             $frmenrol->display();
index 34c3018a02ba7f023b85d4bbcef1c6a5ac5ea450..b1ce8c395d912acf6542c206f162ea8c2821e888 100644 (file)
@@ -14,7 +14,7 @@
 
 /// Get course
     if (! $course = $DB->get_record('course', array('id'=>$courseid))) {
-        print_error('invaliduserid');
+        print_error('invalidcourseid', '', '', $courseid);
     }
 
 /// Only SITE users can access to this page
index 42a6b8aebf9b70aba1f003af5aca0f072769b5af..c1965e5f993f684dae46d0924c2578dad86bb287 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$ 
+<?PHP // $Id$
       // enrol_authorize.php - created with Moodle 2.0 dev (2007101508)
 
 
@@ -56,6 +56,7 @@ $string['authcode'] = 'Authorization Code';
 $string['authorize:managepayments'] = 'Manage payments';
 $string['authorize:uploadcsv'] = 'Upload CSV file';
 $string['authorizedpendingcapture'] = 'Authorized / Pending Capture';
+$string['authorizeerror'] = 'Authorize.net Error: $a';
 $string['avsa'] = 'Address (street) matches, postal code does not';
 $string['avsb'] = 'Address information not provided';
 $string['avse'] = 'Address Verification System Error';