mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 08:19:27 -05:00
Update fixDescriptions
This commit is contained in:
@@ -15,12 +15,12 @@ foreach ($xmlFiles as $file) {
|
||||
}
|
||||
|
||||
foreach ($xml->Config as $id => $config) {
|
||||
if ( startsWith((string)$config->attributes()->Description,"Container ".(string)$config->attributes()->Type) ) {
|
||||
if (startsWith((string)$config->attributes()->Description,"Container ".(string)$config->attributes()->Type)) {
|
||||
$config->attributes()->Description = "";
|
||||
$changeFlag = true;
|
||||
}
|
||||
}
|
||||
if ( $changeFlag ) {
|
||||
if (isset($changeFlag)) {
|
||||
copy($file,"$file.bak");
|
||||
$dom = new DOMDocument('1.0');
|
||||
$dom->preserveWhiteSpace = false;
|
||||
|
||||
Reference in New Issue
Block a user