Fix: regression - original overviews weren't being passed through

pull/11/head
Squidly271 2021-05-23 14:18:53 -04:00
parent 97c722caa1
commit 0038643543
3 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ b398273cf7daa62ab00d2de2336ca25f ./README.md
8e7dc33512b8a78f28d7179a972c7c34 ./images/discord-hover.svg
54e46db492ddb033dfeb2827c5efd4a8 ./images/discord-white.svg
30e1d9b5d1891fa0052961e7b3743972 ./include/exec.php
9ee9c5f6f0f3148dd0f97e459ca49e74 ./include/helpers.php
52120efaabf72bcb458de43faf368332 ./include/helpers.php
8f1129e0cdb994c6d1900192252433d8 ./include/paths.php
9ba7ea3ef8bad60cb8335da9c0daea4f ./javascript/libraries.js
e605780f0c220d94298c20a6914af598 ./skins/Narrow/css.php

View File

@ -237,7 +237,11 @@ function makeXML($template) {
# ensure its a v2 template if the Config entries exist
if ( $template['Config'] && ! $template['@attributes'] )
$template['@attributes'] = array("version"=>2);
if ( $template['OriginalOverview'] ) {
$template['Overview'] = $template['OriginalOverview'];
$template['Description'] = $template['OriginalOverview'];
}
fixAttributes($template,"Network");
fixAttributes($template,"Config");