Commit 94f6d74b authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Restore adminmessages in notification type dropdown


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 7901b85d
......@@ -46,6 +46,10 @@ $types = array_map(create_function('$a', '
return get_string("type" . $a->name, $section);
'), $types);
if ($USER->get('admin')) {
$types['adminmessages'] = get_string('typeadminmessages', 'activity');
}
$type = param_alphanum('type', 'all');
if (!isset($types[$type])) {
$type = 'all';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment