File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 622
622
if ($ realpost ->userid == $ USER ->id ) {
623
623
$ message .= get_string ('postupdated ' , 'moodleoverflow ' );
624
624
} else {
625
- $ realuser = $ DB ->get_record ('user ' , array ('id ' => $ realpost ->userid ));
626
- $ message .= get_string ('editedpostupdated ' , 'moodleoverflow ' , fullname ($ realuser ));
625
+ if (\mod_moodleoverflow \anonymous::is_post_anonymous ($ discussion , $ moodleoverflow , $ realpost ->userid )) {
626
+ $ name = get_string ('anonymous ' , 'moodleoverflow ' );
627
+ } else {
628
+ $ realuser = $ DB ->get_record ('user ' , array ('id ' => $ realpost ->userid ));
629
+ $ name = fullname ($ realuser );
630
+ }
631
+ $ message .= get_string ('editedpostupdated ' , 'moodleoverflow ' , $ name );
627
632
}
628
633
629
634
// Create a link to go back to the discussion.
You can’t perform that action at this time.
0 commit comments