From: mjollnir_ Date: Mon, 15 Sep 2008 17:14:51 +0000 (+0000) Subject: MDL-16516 - fixing bad regression in mahara portfolio plugin X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f2e933bb09a4e1da78a8d8c3a566569d2f9b221b;p=moodle.git MDL-16516 - fixing bad regression in mahara portfolio plugin --- diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php index 3728a41cde..147a330c6d 100644 --- a/lib/portfolio/exporter.php +++ b/lib/portfolio/exporter.php @@ -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 * diff --git a/portfolio/type/mahara/lib.php b/portfolio/type/mahara/lib.php index 3cff554ee0..9900c9c808 100644 --- a/portfolio/type/mahara/lib.php +++ b/portfolio/type/mahara/lib.php @@ -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(); } }