MDL-14129 Fix dongsheng's fixes and make dongsheng happy :)

This commit is contained in:
ethem 2008-06-20 10:48:29 +00:00
parent 50a12c87ce
commit b6398eb44b
3 changed files with 4 additions and 3 deletions

View File

@ -92,7 +92,7 @@ class enrolment_plugin_authorize
break;
}
if (!empty($authorizeerror)) {
print_error('authorizeerror');
print_error('authorizeerror', 'enrol_authorize', '', $authorizeerror);
}
}
$frmenrol->display();

View 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

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