mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Fixed issue in selfupgrade where the package would get downloaded in the wrong destination
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user