mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Clean up some class inheritance issues in feeds
This commit is contained in:
parent
2ef5ce6551
commit
18f761929a
3 changed files with 18 additions and 9 deletions
|
@ -40,15 +40,6 @@ class Feed{
|
|||
return '';
|
||||
}
|
||||
|
||||
public function SaveIfChanged(): void{
|
||||
// Did we actually update the feed? If so, write to file and update the index
|
||||
if($this->HasChanged($this->Path)){
|
||||
// Files don't match, save the file
|
||||
$this->Updated = new DateTime();
|
||||
$this->Save();
|
||||
}
|
||||
}
|
||||
|
||||
public function Save(): void{
|
||||
$feed = $this->GetXmlString();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue