[multienrol]Fixed some wired characters caused by my editor

This commit is contained in:
martinlanghoff
2006-03-09 02:56:44 +00:00
parent b31c216293
commit f5befec4e8
+14 -14
View 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