]> git.mjollnir.org Git - moodle.git/commitdiff
[multienrol]Fixed some wired characters caused by my editor
authormartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 02:56:44 +0000 (02:56 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 02:56:44 +0000 (02:56 +0000)
enrol/paypal/enrol.php

index 1ce836c713e8e19dca45841ad99ed4d6fa879aaa..9470f03b76130ed3386df0c33e1709fb4a4f947c 100644 (file)
@@ -179,20 +179,20 @@ function sanitise_for_paypal($text) {
     if (!empty($CFG->sanitise_for_paypal)) {
         //Array of characters to replace (not allowed by PayPal)
         //Can be expanded as necessary to add other diacritics
-        $replace = array('' => 'a',        //Spanish characters
-                         '' => 'e',
-                         '' => 'i',
-                         '' => 'o',
-                         '' => 'u',
-                         '' => 'A',
-                         '' => 'E',
-                         '' => 'I',
-                         '' => 'O',
-                         '' => 'U',
-                         '' => 'n',
-                         '' => 'N',
-                         '' => 'u',
-                         '' => 'U');
+        $replace = array('á' => 'a',        //Spanish characters
+                         'é' => 'e',
+                         'í' => 'i',
+                         'ó' => 'o',
+                         'ú' => 'u',
+                         'Á' => 'A',
+                         'É' => 'E',
+                         'Í' => 'I',
+                         'Ó' => 'O',
+                         'Ú' => 'U',
+                         'ñ' => 'n',
+                         'Ñ' => 'N',
+                         'ü' => 'u',
+                         'Ü' => 'U');
         $text = strtr($text, $replace);
     
         //Make here other sanities if necessary