MDL-22788 fixed old currency use
authorPetr Skoda <skodak@moodle.org>
Wed, 11 Aug 2010 17:22:15 +0000 (17:22 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 11 Aug 2010 17:22:15 +0000 (17:22 +0000)
enrol/paypal/lib.php

index 6243ae9..8f5ad5c 100644 (file)
@@ -169,7 +169,7 @@ class enrol_paypal_plugin extends enrol_plugin {
                     $wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
                 }
                 echo '<div class="mdl-align"><p>'.get_string('paymentrequired').'</p>';
-                echo '<p><b>'.get_string('cost').": $CFG->enrol_currency $cost".'</b></p>';
+                echo '<p><b>'.get_string('cost').": $instance->currency $cost".'</b></p>';
                 echo '<p><a href="'.$wwwroot.'/login/">'.get_string('loginsite').'</a></p>';
                 echo '</div>';
             } else {