From: Penelope Leach Date: Mon, 16 Nov 2009 14:57:42 +0000 (+0000) Subject: portfolio MDL-20850 adding $PAGE->set_url X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa379865991c3407602a7ee333903ee2d5cd7c99;p=moodle.git portfolio MDL-20850 adding $PAGE->set_url --- diff --git a/portfolio/add.php b/portfolio/add.php index 75bfb81dad..fe6b7202a4 100644 --- a/portfolio/add.php +++ b/portfolio/add.php @@ -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 diff --git a/portfolio/file.php b/portfolio/file.php index e184c91342..282e7fdc28 100644 --- a/portfolio/file.php +++ b/portfolio/file.php @@ -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();