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 3728a41..147a330 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 3cff554..9900c9c 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();
         }
     }