From: mjollnir_ Date: Fri, 25 Jul 2008 15:32:44 +0000 (+0000) Subject: MDL-14591: make the portfolio exporter redirect to nicer places in case of error. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3f871282a1c3ad000404eb8c14c6fd1c56a457a6;p=moodle.git MDL-14591: make the portfolio exporter redirect to nicer places in case of error. --- diff --git a/lib/portfoliolib.php b/lib/portfoliolib.php index 1e99a1c02c..ff499febfd 100644 --- a/lib/portfoliolib.php +++ b/lib/portfoliolib.php @@ -1819,10 +1819,10 @@ final class portfolio_exporter { $this->uniquekey = $unique; $this->tempdir = $tempdir; if (!$this->caller->prepare_package($tempdir)) { - return $this->raise_error('callercouldnotpackage', 'portfolio'); + return $this->raise_error('callercouldnotpackage', 'portfolio', $this->caller->get_return_url()); } if (!$package = $this->instance->prepare_package($tempdir)) { - return $this->raise_error('plugincouldnotpackage', 'portfolio'); + return $this->raise_error('plugincouldnotpackage', 'portfolio', $this->caller->get_return_url()); } return true; }