Turn array() to [] and add timeadded to links submitted via onion.php

This commit is contained in:
Daniel Winzen
2016-09-29 08:07:16 +02:00
parent 2e8f51080c
commit 5d8b8daed8
6 changed files with 23 additions and 23 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);
?>