Skip to content

Commit

Permalink
Merge pull request #6 from PHPOffice/develop
Browse files Browse the repository at this point in the history
Version 0.2.2
  • Loading branch information
Progi1984 committed Aug 3, 2015
2 parents baf28eb + 0bcc9d8 commit 2acb9c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@

### Features
- Added XMLReader from PHPWord

## 0.2.2

### BugFix
- Fixed "Class 'PhpOffice\Common\ZipArchive' not found in /src/Common/XMLReader.php on line 54"
4 changes: 2 additions & 2 deletions src/Common/XMLReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getDomFromZip($zipFile, $xmlFile)
throw new \Exception('Cannot find archive file.');
}

$zip = new ZipArchive();
$zip = new \ZipArchive();
$zip->open($zipFile);
$content = $zip->getFromName($xmlFile);
$zip->close();
Expand Down Expand Up @@ -186,4 +186,4 @@ public function elementExists($path, \DOMElement $contextNode = null)
{
return $this->getElements($path, $contextNode)->length > 0;
}
}
}

0 comments on commit 2acb9c6

Please sign in to comment.