Temporary fix with set_url to remove annoying notices

This commit is contained in:
nicolasconnault 2009-09-11 07:01:14 +00:00
parent 4a8b890a1a
commit 46be7361ee

View File

@ -38,6 +38,8 @@ $user = $USER;
// TODO redirect if $CFG->useexternalblogs is off, $CFG->maxexternalblogsperuser == 0, or if user doesn't have caps to manage external blogs
$id = optional_param('id', null, PARAM_INT);
$PAGE->set_url('/blog/external.php', array('id' => $id));
$returnurl = urldecode(optional_param('returnurl', $PAGE->url->out(), PARAM_RAW));
$action = (empty($id)) ? 'add' : 'edit';