Fixed tmp streams

This commit is contained in:
Djamil Legato
2016-08-25 12:45:16 -07:00
parent 64ceef447c
commit f29104ad5d
3 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ class Installer
$zip = new \ZipArchive();
$archive = $zip->open($package);
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true);
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true);
$tmp = $tmp_dir . '/Grav-' . uniqid();
if ($archive !== true) {

View File

@@ -549,7 +549,7 @@ class InstallCommand extends ConsoleCommand
*/
private function downloadPackage($package)
{
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true);
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true);
$this->tmp = $tmp_dir . '/Grav-' . uniqid();
$filename = $package->slug . basename($package->zipball_url);
$output = Response::get($package->zipball_url, [], [$this, 'progress']);

View File

@@ -195,7 +195,7 @@ class SelfupgradeCommand extends ConsoleCommand
*/
private function download($package)
{
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true);
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true);
$this->tmp = $tmp_dir . '/Grav-' . uniqid();
$output = Response::get($package['download'], [], [$this, 'progress']);