remove CR from start and end of lang string line read from file, as it breaks stuff e.g. in eMail module

This commit is contained in:
Klaus Leithoff 2012-12-12 10:18:40 +00:00
parent 36bc7871c1
commit c3d2170518

View File

@ -463,7 +463,7 @@ class translation
//while(($line = fgetcsv($f, 1024, "\t")))
while($line = fgets($f))
{
$line = explode("\t", $line);
$line = explode("\t", trim($line));
++$line_nr;
if (count($line) != 4) continue;
list($l_id,$l_app,$l_lang,$l_translation) = $line;