]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14591: make the portfolio exporter redirect to nicer places in case of error.
authormjollnir_ <mjollnir_>
Fri, 25 Jul 2008 15:32:44 +0000 (15:32 +0000)
committermjollnir_ <mjollnir_>
Fri, 25 Jul 2008 15:32:44 +0000 (15:32 +0000)
lib/portfoliolib.php

index 1e99a1c02c2ebcd13c5c443107a519d560c3d9d8..ff499febfd6dd00806e9f6ac07b23ae539babf6a 100644 (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;
     }