diff --git a/portfolio/add.php b/portfolio/add.php
index c52417fdccf..ee4b8b8304b 100644
--- a/portfolio/add.php
+++ b/portfolio/add.php
@@ -200,9 +200,9 @@ if (!$exporter->get('instance')) {
}
else {
$exporter->print_header('selectplugin');
- print_simple_box_start();
+ echo $OUTPUT->box_start();
$mform->display();
- print_simple_box_end();
+ echo $OUTPUT->box_end();
echo $OUTPUT->footer();
exit;
}
diff --git a/portfolio/type/download/file.php b/portfolio/type/download/file.php
index 63d857a0782..e131478cce1 100644
--- a/portfolio/type/download/file.php
+++ b/portfolio/type/download/file.php
@@ -21,7 +21,7 @@ $exporter->verify_rewaken();
$exporter->print_header(get_string('downloading', 'portfolio_download'), false);
$returnurl = $exporter->get('caller')->get_return_url();
-notify('' . get_string('returntowhereyouwere', 'portfolio') . '
');
+echo $OUTPUT->notification('' . get_string('returntowhereyouwere', 'portfolio') . '
');
// if they don't have javascript, they can submit the form here to get the file.
// if they do, it does it nicely for them.