portfolio MDL-24035 Fixed up context notification

This commit is contained in:
Sam Hemelryk 2010-09-13 09:19:11 +00:00
parent 258a66dcce
commit 3fad0df680

View File

@ -50,6 +50,7 @@ $callbackclass = optional_param('callbackclass', null, PARAM_ALPHAEXT); //
$callerformats = optional_param('callerformats', null, PARAM_TAGLIST); // comma separated list of formats the specific place exporting content supports
require_login(); // this is selectively called again with $course later when we know for sure which one we're in.
$PAGE->set_context(get_system_context());
$PAGE->set_url('/portfolio/add.php', array('id' => $dataid, 'sesskey' => sesskey()));
$PAGE->set_pagelayout('standard');
$exporter = null;