From f2e933bb09a4e1da78a8d8c3a566569d2f9b221b Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Mon, 15 Sep 2008 17:14:51 +0000 Subject: [PATCH] MDL-16516 - fixing bad regression in mahara portfolio plugin --- lib/portfolio/exporter.php | 10 ++++++++++ portfolio/type/mahara/lib.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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(); } } -- 2.39.5