[multienrol]Fixed some wired characters caused by my editor
This commit is contained in:
+14
-14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user