MDL-22788 fixed course name multilang issue in PayPal plugin

This commit is contained in:
Petr Skoda 2010-08-11 17:14:55 +00:00
parent 2c3e42fdd9
commit 32d661354b

View File

@ -174,7 +174,7 @@ class enrol_paypal_plugin extends enrol_plugin {
echo '</div>';
} else {
//Sanitise some fields before building the PayPal form
$coursefullname = $course->fullname;
$coursefullname = format_string($course->fullname, true, array('context'=>$context));
$courseshortname = $course->shortname;
$userfullname = fullname($USER);
$userfirstname = $USER->firstname;