Skip to content
Snippets Groups Projects
Commit 1445ad2b authored by tbrehm's avatar tbrehm
Browse files

Force unix linebreaks when a language file gets imported which has windows linebreaks inside.

parent 28d1b530
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ if(isset($_FILES['file']['name']) && is_uploaded_file($_FILES['file']['tmp_name' ...@@ -84,7 +84,7 @@ if(isset($_FILES['file']['name']) && is_uploaded_file($_FILES['file']['tmp_name'
$langfile_path = trim(ISPC_WEB_PATH.'/'.$module_name.'/lib/lang/'.$file_name); $langfile_path = trim(ISPC_WEB_PATH.'/'.$module_name.'/lib/lang/'.$file_name);
} }
} else { } else {
$buffer .= $line; $buffer .= trim($line)."\n";
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment