Merge branch 'MDL-38808' of git://github.com/jmvedrine/moodle

This commit is contained in:
Dan Poltawski 2013-04-03 14:46:58 +08:00
commit 998c5996e0

View 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')) {