Fixed character conversion issues.
This commit is contained in:
parent
95644a0f24
commit
652d58fc76
|
@ -150,7 +150,7 @@ function printMap($type = 'main')
|
|||
$servers_js = array();
|
||||
foreach ($map_location['servers'] as $server)
|
||||
{
|
||||
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
|
||||
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
|
||||
$replace_pattern = array("");
|
||||
$server['name'] = preg_replace($search_pattern, $replace_pattern, $server['name']);
|
||||
$temp = "[" . $server['serverId'] . ',';
|
||||
|
@ -183,7 +183,7 @@ function printMap($type = 'main')
|
|||
{
|
||||
$players[$row['cli_lat'] . ',' . $row['cli_lng']] = array('cli_lat' => $row['cli_lat'], 'cli_lng' => $row['cli_lng'], 'cli_city' => $row['cli_city'], 'cli_country' => $row['cli_country']);
|
||||
}
|
||||
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
|
||||
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
|
||||
$replace_pattern = array("");
|
||||
$row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']);
|
||||
|
||||
|
@ -246,7 +246,7 @@ function printMap($type = 'main')
|
|||
'country' => $row['country']
|
||||
);
|
||||
}
|
||||
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
|
||||
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
|
||||
$replace_pattern = array("");
|
||||
$row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user