Permalink
Browse files

MDL-38808 Remove deprecated unzip_file from qformat blackboard_six

  • Loading branch information...
Jean-Michel Vedrine
Jean-Michel Vedrine committed Mar 31, 2013
1 parent d8201d4 commit 9219089a72c3b881ff57d54bc9224aadb4e4ae27
Showing with 2 additions and 1 deletion.
  1. +2 −1 question/format/blackboard_six/format.php
@@ -99,7 +99,8 @@ public function readdata($filename) {
fulldelete($this->tempdir);
return false;
}
- if (unzip_file($this->tempdir . '/bboard.zip', '', false)) {
+ $packer = get_file_packer('application/zip');
+ if ($packer->extract_to_pathname($this->tempdir . '/bboard.zip', $this->tempdir)) {
$dom = new DomDocument();
if (!$dom->load($this->tempdir . '/imsmanifest.xml')) {

0 comments on commit 9219089

Please sign in to comment.