mirror of
https://github.com/unraid/webgui.git
synced 2026-01-27 03:59:01 -06:00
Add XML encoding header to XML view (make consistent with form view)
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
]
|
||||
]
|
||||
];
|
||||
$hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaration
|
||||
|
||||
// Merge in any default values from the VM template
|
||||
if ($arrAllTemplates[$strSelectedTemplate] && $arrAllTemplates[$strSelectedTemplate]['overrides']) {
|
||||
@@ -1122,7 +1123,7 @@
|
||||
</div>
|
||||
|
||||
<div class="xmlview">
|
||||
<textarea id="addcode" name="xmldesc" placeholder="Copy & Paste Domain XML Configuration Here." autofocus><?= htmlspecialchars($strXML); ?></textarea>
|
||||
<textarea id="addcode" name="xmldesc" placeholder="Copy & Paste Domain XML Configuration Here." autofocus><?=htmlspecialchars($hdrXML).htmlspecialchars($strXML)?></textarea>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user