MDL-22788 fixed course name multilang issue in PayPal plugin
authorPetr Skoda <skodak@moodle.org>
Wed, 11 Aug 2010 17:14:55 +0000 (17:14 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 11 Aug 2010 17:14:55 +0000 (17:14 +0000)
enrol/paypal/lib.php

index 534c68b..b0783ac 100644 (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;