mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 21:04:49 -04:00
Add --force option to generate-feeds
This commit is contained in:
parent
372bdadd37
commit
dcb20692aa
2 changed files with 29 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue