Merge branch 'MDL-56514-master-fix1' of https://github.com/lameze/moodle

This commit is contained in:
Dan Poltawski
2016-11-01 08:43:09 +00:00
-5
View File
@@ -2306,11 +2306,6 @@ class core_message_external extends external_api {
public static function get_user_notification_preferences($userid = 0) {
global $USER, $PAGE, $CFG;
// Check if messaging is enabled.
if (empty($CFG->messaging)) {
throw new moodle_exception('disabled', 'message');
}
$params = self::validate_parameters(
self::get_user_notification_preferences_parameters(),
array(