dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eaf1cf
)
Added "autocollect" function to TempFSFile.
author
Aaron
<aschulz@wikimedia.org>
Mon, 20 Aug 2012 19:15:42 +0000
(12:15 -0700)
committer
Aaron
<aschulz@wikimedia.org>
Mon, 20 Aug 2012 19:15:49 +0000
(12:15 -0700)
* This is useful for declaring a temp file not generated via factory() as a temp file.
Change-Id: Iaa24ce3c3b0d1f7b3f492377f5bae40a1dd8869a
includes/filebackend/TempFSFile.php
patch
|
blob
|
history
diff --git
a/includes/filebackend/TempFSFile.php
b/includes/filebackend/TempFSFile.php
index
00f1080
..
ed6bf2f
100644
(file)
--- a/
includes/filebackend/TempFSFile.php
+++ b/
includes/filebackend/TempFSFile.php
@@
-99,6
+99,15
@@
class TempFSFile extends FSFile {
$this->canDelete = false;
}
+ /**
+ * Set flag clean up after the temporary file
+ *
+ * @return void
+ */
+ public function autocollect() {
+ $this->canDelete = true;
+ }
+
/**
* Cleans up after the temporary file by deleting it
*/