portfolio MDL-20850 adding $PAGE->set_url

This commit is contained in:
Penelope Leach
2009-11-16 14:57:42 +00:00
parent 0503e887e6
commit aa37986599
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ $callbackfile = optional_param('callbackfile', null, PARAM_PATH); //
$callbackclass = optional_param('callbackclass', null, PARAM_ALPHAEXT); // callback class eg forum_portfolio_caller - the class to handle the exporting content.
require_login(); // this is selectively called again with $course later when we know for sure which one we're in.
$PAGE->set_url('/portfolio/add.php', array('id' => $dataid));
$exporter = null;
// try and find a partial export id in the session if it's not passed explicitly
+1
View File
@@ -41,6 +41,7 @@ require_once($CFG->libdir . '/filelib.php');
$id = required_param('id', PARAM_INT);
require_login();
$PAGE->set_url('/portfolio/add.php', array('id' => $id));
$exporter = portfolio_exporter::rewaken_object($id);
$exporter->verify_rewaken();