]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16516 - fixing bad regression in mahara portfolio plugin
authormjollnir_ <mjollnir_>
Mon, 15 Sep 2008 17:14:51 +0000 (17:14 +0000)
committermjollnir_ <mjollnir_>
Mon, 15 Sep 2008 17:14:51 +0000 (17:14 +0000)
lib/portfolio/exporter.php
portfolio/type/mahara/lib.php

index 3728a41cde5e66d241b7f3d8291ddab85d70dcb1..147a330c6dfab419063b3ea35381f42233c2d98a 100644 (file)
@@ -169,6 +169,16 @@ class portfolio_exporter {
 
     }
 
+    /**
+    * sets this export to force queued
+    * sometimes plugins need to set this randomly
+    * if an external system changes its mind
+    * about what's supported
+    */
+    public function set_forcequeue() {
+        $this->forcequeue = true;
+    }
+
     /**
     * process the given stage calling whatever functions are necessary
     *
index 3cff554ee0d36d31036da3225d4acd9e5835bf53..9900c9c80816dfa86978889f97f53dedd8570a10 100644 (file)
@@ -189,7 +189,7 @@ class portfolio_plugin_mahara extends portfolio_plugin_pull_base {
             throw new portfolio_export_exception($this->get('exporter'), 'failedtoping', 'portfolio_mahara');
         }
         if ($response->type =='queued') {
-            $this->exporter->set('forcequeue', true);
+            $this->exporter->set_forcequeue();
         }
     }