Add --force option to generate-feeds

This commit is contained in:
Alex Cabal 2022-06-24 10:48:12 -05:00
parent 372bdadd37
commit dcb20692aa
2 changed files with 29 additions and 16 deletions

View file

@ -26,6 +26,7 @@ class Feed{
$output = file_get_contents($tempFilename);
unlink($tempFilename);
// At the moment, `se clean` strips stylesheet declarations. Restore them here.
if($this->Stylesheet !== null){
$output = str_replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>", "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<?xml-stylesheet href=\"" . $this->Stylesheet . "\" type=\"text/xsl\"?>", $output);
}