add newlines to dcstore.xml file

This commit is contained in:
Jean-Christian Denis 2021-09-28 00:44:16 +02:00
parent efc53d8c84
commit 9d4e28e758
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -196,7 +196,7 @@ class tweakStores
return false;
}
try {
files::putContent($module['root'] . '/dcstore.xml', $content);
files::putContent($module['root'] . '/dcstore.xml', str_replace('><', ">\n<", $content));
} catch(Exception $e) {
self::$failed[] = $e->getMessage();
return false;