portfolio MDL-24266 fixing a typo in class name instance of check found by petr's insane new toy

This commit is contained in:
Penny Leach 2010-09-18 11:50:12 +00:00
parent 042a84038c
commit 86fef7764a

View File

@ -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');