diff --git a/portfolio/add.php b/portfolio/add.php index b9704125ea37c..2d4e3ce99bbf8 100644 --- a/portfolio/add.php +++ b/portfolio/add.php @@ -96,7 +96,7 @@ echo $OUTPUT->box_start(); $yesbutton = new single_button(new moodle_url('/portfolio/add.php', array('id' => $dataid, 'cancel' => 1, 'cancelsure' => 1, 'logreturn' => $logreturn)), get_string('yes')); if ($logreturn) { - $nobutton = new single_button(new moodle_url('/user/portfoliologs.php', array('id' => $dataid)), get_string('no')); + $nobutton = new single_button(new moodle_url('/user/portfoliologs.php'), get_string('no')); } else { $nobutton = new single_button(new moodle_url('/portfolio/add.php', array('id' => $dataid)), get_string('no')); } diff --git a/user/portfoliologs.php b/user/portfoliologs.php index 3c276d394d7c0..3993261778355 100644 --- a/user/portfoliologs.php +++ b/user/portfoliologs.php @@ -30,6 +30,7 @@ } require_once($CFG->libdir . '/portfoliolib.php'); +require_once($CFG->libdir . '/portfolio/exporter.php'); $courseid = optional_param('courseid', SITEID, PARAM_INT); $page = optional_param('page', 0, PARAM_INT);