]> git.mjollnir.org Git - moodle.git/commitdiff
portfolio MDL-20850 adding $PAGE->set_url
authorPenelope Leach <penny@catalyst.net.nz>
Mon, 16 Nov 2009 14:57:42 +0000 (14:57 +0000)
committerPenelope Leach <penny@catalyst.net.nz>
Mon, 16 Nov 2009 14:57:42 +0000 (14:57 +0000)
portfolio/add.php
portfolio/file.php

index 75bfb81dadd40dbb6a91fb1d0dedbf8cc14a85e3..fe6b7202a4cf3ab88e1a41983f1d24f800736224 100644 (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
index e184c91342b7783c22608bcb8d8dcbc63a91a218..282e7fdc285b7f44c423ca21318e4786130676e1 100644 (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();