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

@@ -5,6 +5,7 @@
* Get fresh media list for `Controller::getListMedia()` rather that cache so always latest. * Get fresh media list for `Controller::getListMedia()` rather that cache so always latest.
1. [](#bugfix) 1. [](#bugfix)
* Fixed issue in Admin favicon URL [#704](https://github.com/getgrav/grav-plugin-admin/issues/704) * Fixed issue in Admin favicon URL [#704](https://github.com/getgrav/grav-plugin-admin/issues/704)
* Fixed issue in `selfupgrade` where the package would get downloaded in the wrong destination
# v1.1.2 # v1.1.2
## 07/16/2016 ## 07/16/2016

View File

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