Update translate.class.php

Resolve bug #9105
When load() function loads translation file from an external modules, adds a \r simbol at the end of each line.
This commit is contained in:
JC Prieto 2020-02-27 09:32:22 +01:00 committed by GitHub
parent 957295ee2d
commit c555a2c588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,7 @@ class Translate
* and split the rest until a line feed.
* This is more efficient than fgets + explode + trim by a factor of ~2.
*/
while ($line = fscanf($fp, "%[^= ]%*[ =]%[^\n]"))
while ($line = fscanf($fp, "%[^= ]%*[ =]%[^\n\r]"))
{
if (isset($line[1]))
{