Fix for bad ZipArchive references

This commit is contained in:
Andy Miller
2018-03-24 13:49:56 -06:00
parent df7e9b9c1f
commit f4e584cda1
2 changed files with 15 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
# v1.4.3
## mm/dd/2018
1. [](#bugfix)
* ix for bad reference to `ZipArchive` in `GPM::Installer`
# v1.4.2
## 03/21/2018
@@ -11,7 +17,7 @@
* Fixed an issue with Markdown Video and Audio that broke after Parsedown 1.7.0 Security updates [#1924](https://github.com/getgrav/grav/issues/1924)
* Fix for case-sensitive page metadata [admin#1370](https://github.com/getgrav/grav-plugin-admin/issues/1370)
* Fixed missing composer requirements for the new `Grav\Framework\Uri` classes
* Added missing PSR-7 vendor library required for URI additions in Grav 1.4.0
* Added missing PSR-7 vendor library required for URI additions in Grav 1.4.0
# v1.4.1
## 03/11/2018

View File

@@ -202,35 +202,35 @@ class Installer
protected static function getZipError($res)
{
switch($res){
case ZipArchive::ER_EXISTS:
case \ZipArchive::ER_EXISTS:
$error = "File already exists.";
break;
case ZipArchive::ER_INCONS:
case \ZipArchive::ER_INCONS:
$error = "Zip archive inconsistent.";
break;
case ZipArchive::ER_MEMORY:
case \ZipArchive::ER_MEMORY:
$error = "Malloc failure.";
break;
case ZipArchive::ER_NOENT:
case \ZipArchive::ER_NOENT:
$error = "No such file.";
break;
case ZipArchive::ER_NOZIP:
case \ZipArchive::ER_NOZIP:
$error = "Not a zip archive.";
break;
case ZipArchive::ER_OPEN:
case \ZipArchive::ER_OPEN:
$error = "Can't open file.";
break;
case ZipArchive::ER_READ:
case \ZipArchive::ER_READ:
$error = "Read error.";
break;
case ZipArchive::ER_SEEK:
case \ZipArchive::ER_SEEK:
$error = "Seek error.";
break;