"MDL-23690, fixed set_context error, credits to Penny"

This commit is contained in:
Dongsheng Cai
2010-08-06 09:38:36 +00:00
parent fdfb9cbe1a
commit afba32ddd5
+1 -1
View File
@@ -16,10 +16,10 @@ require_once($CFG->libdir.'/portfolio/exporter.php');
$PAGE->requires->yui2_lib('dom');
$id = required_param('id', PARAM_INT);
require_login();
$PAGE->set_url('/portfolio/download/file.php', array('id' => $id));
$exporter = portfolio_exporter::rewaken_object($id);
portfolio_export_pagesetup($PAGE, $exporter->get('caller'));
$exporter->verify_rewaken();
$exporter->print_header(get_string('downloading', 'portfolio_download'), false);