From 86fef7764a65e6f855f9b36818a536858f6cc8cb Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Sat, 18 Sep 2010 11:50:12 +0000 Subject: [PATCH] portfolio MDL-24266 fixing a typo in class name instance of check found by petr's insane new toy --- lib/portfolio/exporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php index 66ee9a547e9..a3a3ab0ca2b 100644 --- a/lib/portfolio/exporter.php +++ b/lib/portfolio/exporter.php @@ -213,7 +213,7 @@ class portfolio_exporter { } if (!$this->alreadystolen[$stage] && $url = $this->instance->steal_control($stage)) { $this->save(); - redirect($url); + redirect($url); // does not return } else { $this->save(); } @@ -858,7 +858,7 @@ class portfolio_exporter { public static function print_cleaned_export($log, $instance=null) { global $CFG, $OUTPUT, $PAGE; - if (empty($instance) || !$instance instanceof portfolio_plugin) { + if (empty($instance) || !$instance instanceof portfolio_plugin_base) { $instance = portfolio_instance($log->portfolio); } $title = get_string('exportalreadyfinished', 'portfolio');