diff --git a/index.php b/index.php index 29267a5..ae038e2 100644 --- a/index.php +++ b/index.php @@ -23,7 +23,7 @@ $debug=''; require 'lib/gettlds.php'; $tlds=gettlds('storage/tlds.txt',false);// we don't get them in "regex format" because we need them for js too, so we'll rsort them later if (!is_null($tlds['warnings'])) $debug.="GetTLDs warning: {$tlds['warnings']}.
\n"; -rsort($tlds); +rsort($tlds['tlds']); $retlds=implode('|',$tlds['tlds']); $jstlds="const tlds=['".implode("', '",$tlds['tlds'])."'];\n"; $jstldsfp='storage/tlds.js';