Skip to content
Snippets Groups Projects
Commit 49e145ba authored by Alex Barth's avatar Alex Barth
Browse files

#863494 ekes, alex_b: Delete temporary enclosures file.

parent c1c8d0f5
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX
-------------------------------- --------------------------------
- #863494 ekes, alex_b: Delete temporary enclosures file.
- #849986 lyricnz, alex_b: Cleaner batch support. - #849986 lyricnz, alex_b: Cleaner batch support.
- #866492 lyricnz: Clean up tests. - #866492 lyricnz: Clean up tests.
- #862444 pounard: Do not name files after their enclosure class. - #862444 pounard: Do not name files after their enclosure class.
......
...@@ -132,6 +132,15 @@ class FeedsEnclosure extends FeedsElement { ...@@ -132,6 +132,15 @@ class FeedsEnclosure extends FeedsElement {
$this->mime_type = $mime_type; $this->mime_type = $mime_type;
} }
/**
* Destructor, clean up any temporary files.
*/
public function __destruct() {
if (!empty($this->file)) {
file_delete($this->file);
}
}
/** /**
* @return * @return
* MIME type of return value of getValue(). * MIME type of return value of getValue().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment