diff --git a/CHANGELOG.md b/CHANGELOG.md index c57b05f9..490fcbfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Get fresh media list for `Controller::getListMedia()` rather that cache so always latest. 1. [](#bugfix) * 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 ## 07/16/2016 diff --git a/classes/gpm.php b/classes/gpm.php index db7621c4..cc08e9bb 100644 --- a/classes/gpm.php +++ b/classes/gpm.php @@ -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,