portfolio MDL-20850 adding $PAGE->set_url
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user