turn array() into shorter []

This commit is contained in:
Daniel Winzen
2016-11-16 20:34:47 +01:00
parent 8ce48c837c
commit 88a91658bb
9 changed files with 136 additions and 136 deletions

View File

@ -25,7 +25,7 @@ echo "<?php
*/
//Native language name: $native
\$T=array(
\$T=[
";
if(file_exists("lang_$code.php")){
include("lang_$code.php");
@ -39,7 +39,7 @@ foreach($T as $id=>$value){
foreach($I as $id=>$value){
echo "\t'$id' => '".str_replace("'", "\'", $value)."',\n";
}
echo ");\n?>\n";
echo "];\n?>\n";
$file=ob_get_clean();
file_put_contents("lang_$code.php", $file);
?>