From ddc98f99da306df85fd11941bc56386dd17ae9ae Mon Sep 17 00:00:00 2001 From: Benny Date: Fri, 21 Aug 2015 14:15:31 +0200 Subject: [PATCH] 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 . --- system/src/Grav/Common/GPM/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/GPM/Installer.php b/system/src/Grav/Common/GPM/Installer.php index 859257f3b..6e3d6a484 100644 --- a/system/src/Grav/Common/GPM/Installer.php +++ b/system/src/Grav/Common/GPM/Installer.php @@ -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;