Merge branch 'MDL-27891-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
@@ -48,4 +48,5 @@ $logs = array(
|
||||
array('module'=>'message', 'action'=>'unblock contact', 'mtable'=>'user', 'field'=>$DB->sql_concat('firstname', "' '" , 'lastname')),
|
||||
array('module'=>'group', 'action'=>'view', 'mtable'=>'groups', 'field'=>'name'),
|
||||
array('module'=>'tag', 'action'=>'update', 'mtable'=>'tag', 'field'=>'name'),
|
||||
array('module'=>'tag', 'action'=>'flag', 'mtable'=>'tag', 'field'=>'name'),
|
||||
);
|
||||
|
||||
+5
-1
@@ -45,7 +45,11 @@ switch ($action) {
|
||||
|
||||
case 'flaginappropriate':
|
||||
|
||||
tag_set_flag(tag_get_id($tag));
|
||||
$tagid = tag_get_id($tag);
|
||||
// Add flaging action to logs
|
||||
add_to_log(SITEID, 'tag', 'flag', 'index.php?id='. $tagid, $tagid, '', $USER->id);
|
||||
|
||||
tag_set_flag($tagid);
|
||||
|
||||
redirect($CFG->wwwroot.'/tag/index.php?tag='. rawurlencode($tag), get_string('responsiblewillbenotified', 'tag'));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user