mirror of
https://github.com/getgrav/grav.git
synced 2026-07-20 09:51:02 +02:00
Fix for bad ZipArchive references
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user