Update fixDescriptions

This commit is contained in:
bergware
2023-01-13 23:12:56 +01:00
parent eedfd7d828
commit 262cf2d947
@@ -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;