mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-70931 xmldb: Generate install.xml files with EOL and EOF
As discussed in MDLSITE-6397, all Moodle code files should end with single Unix-style end of line character. Files created and edited through the XMLDB editor should follow this rule, too.
This commit is contained in:
parent
41037efa7a
commit
70b0df5891
@ -93,7 +93,7 @@ class create_xml_file extends XMLDBAction {
|
||||
$c.= ' </KEYS>' . "\n";
|
||||
$c.= ' </TABLE>' . "\n";
|
||||
$c.= ' </TABLES>' . "\n";
|
||||
$c.= ' </XMLDB>';
|
||||
$c.= ' </XMLDB>' . "\n";
|
||||
|
||||
if (!file_put_contents($file, $c)) {
|
||||
$errormsg = 'Error creando fichero ' . $file;
|
||||
|
@ -359,7 +359,7 @@ class xmldb_structure extends xmldb_object {
|
||||
}
|
||||
$o.= ' </TABLES>' . "\n";
|
||||
}
|
||||
$o.= '</XMLDB>';
|
||||
$o.= '</XMLDB>' . "\n";
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user