Skip to content
Permalink
Browse files

[multienrol]Fixed some wired characters caused by my editor

  • Loading branch information...
martinlanghoff
martinlanghoff committed Mar 9, 2006
1 parent b31c216 commit f5befec4e844ce1b4eccded81f6e047374fa77cc
Showing with 14 additions and 14 deletions.
  1. +14 −14 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

0 comments on commit f5befec

Please sign in to comment.
You can’t perform that action at this time.