portfolio MDL-24035 Fixed up context notification
authorSam Hemelryk <sam@moodle.com>
Mon, 13 Sep 2010 09:19:11 +0000 (09:19 +0000)
committerSam Hemelryk <sam@moodle.com>
Mon, 13 Sep 2010 09:19:11 +0000 (09:19 +0000)
portfolio/add.php

index 8e16776..91f96e2 100644 (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;