@@ -358,7 +358,7 @@ public function get_discussionname() {
358
358
* @return string
359
359
*/
360
360
public function get_author_fullname () {
361
- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
361
+ if ($ this ->author ->anonymous ) {
362
362
return get_string ('privacy:anonym_user_name ' , 'mod_moodleoverflow ' );
363
363
} else {
364
364
return fullname ($ this ->author , $ this ->viewfullnames );
@@ -521,7 +521,7 @@ public function get_moodleoverflowviewlink() {
521
521
* @return string
522
522
*/
523
523
public function get_authorlink () {
524
- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
524
+ if ($ this ->author ->anonymous ) {
525
525
return null ;
526
526
}
527
527
@@ -542,7 +542,7 @@ public function get_authorlink() {
542
542
*/
543
543
public function get_author_picture () {
544
544
global $ OUTPUT ;
545
- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
545
+ if ($ this ->author ->anonymous ) {
546
546
return '' ;
547
547
}
548
548
@@ -555,7 +555,7 @@ public function get_author_picture() {
555
555
* @return string
556
556
*/
557
557
public function get_group_picture () {
558
- if (anonymous:: is_post_anonymous ( $ this ->discussion , $ this -> moodleoverflow , $ this -> author ->id ) ) {
558
+ if ($ this ->author ->anonymous ) {
559
559
return '' ;
560
560
}
561
561
0 commit comments