From 9219089a72c3b881ff57d54bc9224aadb4e4ae27 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 31 Mar 2013 11:04:27 +0200 Subject: [PATCH] MDL-38808 Remove deprecated unzip_file from qformat blackboard_six --- question/format/blackboard_six/format.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/question/format/blackboard_six/format.php b/question/format/blackboard_six/format.php index 949e8660c5fa7..a72cd56d10424 100644 --- a/question/format/blackboard_six/format.php +++ b/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')) {