$writer->write("<?php\n/**\n* WoltLab Suite\n* language: ".$this->languageCode."\n* encoding: UTF-8\n* category: ".$category->languageCategory."\n* generated at ".gmdate("r")."\n* \n* DO NOT EDIT THIS FILE\n*/\n");
foreach ($languageItems as $languageItem => $languageItemValue) {
- $writer->write("\$this->items['".$languageItem."'] = '".str_replace(array("\\", "'"), array("\\\\", "\'"), $languageItemValue)."';\n");
+ $writer->write("\$this->items['".$languageItem."'] = '".str_replace(["\\", "'"], ["\\\\", "\'"], $languageItemValue)."';\n");
// compile dynamic language variables
if ($category->languageCategory != 'wcf.global' && strpos($languageItemValue, '{') !== false) {
} // ignore compiler errors
$writer->write("\$this->dynamicItems['".$languageItem."'] = '");
- $writer->write(str_replace(array("\\", "'"), array("\\\\", "\'"), $output['template']));
+ $writer->write(str_replace(["\\", "'"], ["\\\\", "\'"], $output['template']));
$writer->write("';\n");
}
}