Index: trunk/phase3/includes/filerepo/backend/TempFSFile.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | * @ingroup FileBackend |
13 | 13 | */ |
14 | 14 | class TempFSFile extends FSFile { |
15 | | - protected $canDelete = true; // garbage collect the temp file |
| 15 | + protected $canDelete = false; // bool; garbage collect the temp file |
16 | 16 | |
17 | 17 | /** @var Array of active temp files to purge on shutdown */ |
18 | 18 | protected static $instances = array(); |
— | — | @@ -41,6 +41,7 @@ |
42 | 42 | } |
43 | 43 | } |
44 | 44 | $tmpFile = new self( $path ); |
| 45 | + $tmpFile->canDelete = true; // safely instantiated |
45 | 46 | return $tmpFile; |
46 | 47 | } |
47 | 48 | |