Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
1445ad2b
Commit
1445ad2b
authored
Jun 30, 2011
by
tbrehm
Browse files
Force unix linebreaks when a language file gets imported which has windows linebreaks inside.
parent
28d1b530
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/admin/language_import.php
View file @
1445ad2b
...
...
@@ -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
);
}
}
else
{
$buffer
.
=
$line
;
$buffer
.
=
trim
(
$line
)
.
"
\n
"
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment