MDL-23767 PayPal instance name printed on the enrol page
authorPetr Skoda <skodak@moodle.org>
Wed, 11 Aug 2010 17:09:19 +0000 (17:09 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 11 Aug 2010 17:09:19 +0000 (17:09 +0000)
enrol/paypal/enrol.html
enrol/paypal/lib.php

index 3bfc11e..875e3ac 100644 (file)
@@ -1,6 +1,7 @@
 <div align="center">
 
 <p><?php print_string("paymentrequired") ?></p>
+<p><b><?php echo $instancename; ?></b></p>
 <p><b><?php echo get_string("cost").": {$instance->currency} {$cost}"; ?></b></p>
 <p><img alt="<?php print_string('paypalaccepted', 'enrol_paypal') ?>" src="https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif" /></p>
 <p><?php print_string("paymentinstant") ?></p>
index bcadc59..534c68b 100644 (file)
@@ -181,6 +181,7 @@ class enrol_paypal_plugin extends enrol_plugin {
                 $userlastname    = $USER->lastname;
                 $useraddress     = $USER->address;
                 $usercity        = $USER->city;
+                $instancename    = $this->get_instance_name($instance);
 
                 include($CFG->dirroot.'/enrol/paypal/enrol.html');
             }