Merge branch 'MDL-48776-28' of git://github.com/gurgus/moodle into MOODLE_28_STABLE

This commit is contained in:
David Monllao
2015-01-20 16:07:54 +08:00
+5 -1
View File
@@ -25,9 +25,13 @@
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->dirroot . '/message/lib.php');
$userid = optional_param('id', $USER->id, PARAM_INT); // user id
$userid = optional_param('id', 0, PARAM_INT); // User id.
$disableall = optional_param('disableall', 0, PARAM_BOOL); //disable all of this user's notifications
if (!$userid) {
$userid = $USER->id;
}
$url = new moodle_url('/message/edit.php');
$url->param('id', $userid);