Merge branch 'MDL-38808' of git://github.com/jmvedrine/moodle
authorDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 06:46:58 +0000 (14:46 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 06:46:58 +0000 (14:46 +0800)
question/format/blackboard_six/format.php

index 949e866..a72cd56 100644 (file)
@@ -99,7 +99,8 @@ class qformat_blackboard_six extends qformat_blackboard_six_base {
                 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')) {