MDL-14591 - fix up call to exporter->get_base_filearea
authormjollnir_ <mjollnir_>
Mon, 8 Sep 2008 13:47:39 +0000 (13:47 +0000)
committermjollnir_ <mjollnir_>
Mon, 8 Sep 2008 13:47:39 +0000 (13:47 +0000)
portfolio/type/download/lib.php

index 116c3ec3e379c032465e7ef2d384f991e4462a30..244aae85e3b5520d70b95c06fd8cd8af0a23a1be 100644 (file)
@@ -25,7 +25,7 @@ class portfolio_plugin_download extends portfolio_plugin_pull_base {
         $zipper = new zip_packer();
 
         $filename = 'portfolio-export.zip';
-        list ($contextid, $filearea, $itemid) = $this->get('exporter')->get_base_filearea();
+        list ($contextid, $filearea, $itemid) = array_values($this->get('exporter')->get_base_filearea());
         if ($newfile = $zipper->archive_to_storage($files, $contextid, $filearea, $itemid, '/final/', $filename, $this->user->id)) {
             $this->set('file', $newfile);
             return true;