Merge "Localisation updates from http://translatewiki.net."
authorTranslation updater bot <l10n-bot@translatewiki.net>
Mon, 20 Aug 2012 19:37:48 +0000 (19:37 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 20 Aug 2012 19:37:48 +0000 (19:37 +0000)
includes/filebackend/TempFSFile.php

index 00f1080..ed6bf2f 100644 (file)
@@ -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
         */