mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Remove .gz extension if found in map file
This commit is contained in:
parent
42a628731d
commit
41e24ca535
@ -99,6 +99,10 @@ class Towns
|
|||||||
$mapFile = config('data_path') . 'world/' . $mapName;
|
$mapFile = config('data_path') . 'world/' . $mapName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strpos($mapFile, '.gz') !== false) {
|
||||||
|
$mapFile = str_replace('.gz', '', $mapFile);
|
||||||
|
}
|
||||||
|
|
||||||
$towns = [];
|
$towns = [];
|
||||||
if (file_exists($mapFile)) {
|
if (file_exists($mapFile)) {
|
||||||
ini_set('memory_limit', '-1');
|
ini_set('memory_limit', '-1');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user