mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Closes #4804 - Conversion of diacritics in name2id()
This commit is contained in:
@@ -4374,7 +4374,8 @@ var_dump($select_options);*/
|
||||
public function name2id($name)
|
||||
{
|
||||
$name = strtolower($name);
|
||||
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':', '?','=',"'"), array('-', '-', '', '-', '-', '-', '-','','','-','','-','-',''), $name), '-');
|
||||
$name = $this->tp->toASCII($name);
|
||||
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':', '?','=',"'",','), array('-', '-', '', '-', '-', '-', '-','','','-','','-','-','',''), $name), '-');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user