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:
@@ -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