Fixed issue in selfupgrade where the package would get downloaded in the wrong destination

This commit is contained in:
Djamil Legato
2016-07-19 11:23:59 -07:00
parent 262f3d8485
commit e234acb581
2 changed files with 2 additions and 1 deletions

View File

@@ -254,7 +254,7 @@ class Gpm
$update = $upgrader->getAssets()['grav-update'];
$cache_dir = Grav::instance()['locator']->findResource('cache://', true);
$tmp = $cache_dir . 'tmp/Grav-' . uniqid();
$tmp = $cache_dir . DS . 'tmp/Grav-' . uniqid();
$file = self::_downloadSelfupgrade($update, $tmp);
Installer::install($file, GRAV_ROOT,