From f5befec4e844ce1b4eccded81f6e047374fa77cc Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Thu, 9 Mar 2006 02:56:44 +0000 Subject: [PATCH] [multienrol]Fixed some wired characters caused by my editor --- enrol/paypal/enrol.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/enrol/paypal/enrol.php b/enrol/paypal/enrol.php index 1ce836c713e..9470f03b761 100644 --- a/enrol/paypal/enrol.php +++ b/enrol/paypal/enrol.php @@ -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