Fix error from gav-plugin-admin issue # 80

This change fixes an issue connected with https://github.com/getgrav/grav-plugin-admin/issues/80 that occurred when installing plugins removing the duplicate slash in the beginning due to https://github.com/getgrav/grav/blob/develop/system/defines.php#L17 .
This commit is contained in:
Benny
2015-08-21 14:15:31 +02:00
parent 0675ce718c
commit ddc98f99da

View File

@@ -72,7 +72,7 @@ class Installer
$zip = new \ZipArchive();
$archive = $zip->open($package);
$tmp = CACHE_DIR . DS . 'tmp/Grav-' . uniqid();
$tmp = CACHE_DIR . 'tmp/Grav-' . uniqid();
if ($archive !== true) {
self::$error = self::ZIP_OPEN_ERROR;