use DOKU_LF

PHP_EOL is platform dependent, so you get in trouble while migrating
between platforms.
This commit is contained in:
Andreas Gohr 2014-01-08 20:18:55 +01:00
parent ec8911d497
commit 4bad83d828
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ class helper_plugin_extension_extension extends DokuWiki_Plugin {
$file = @file($managerpath);
if(!empty($file)) {
foreach($file as $line) {
list($key, $value) = explode('=', trim($line, PHP_EOL), 2);
list($key, $value) = explode('=', trim($line, DOKU_LF), 2);
$key = trim($key);
$value = trim($value);
// backwards compatible with old plugin manager