mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-14591: make the portfolio exporter redirect to nicer places in case of error.
This commit is contained in:
parent
5071079cb2
commit
3f871282a1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user