MDL-14591: make the portfolio exporter redirect to nicer places in case of error.

This commit is contained in:
mjollnir_ 2008-07-25 15:32:44 +00:00
parent 5071079cb2
commit 3f871282a1

View File

@ -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;
}