Skip to content

Instantly share code, notes, and snippets.

@mudrd8mz
Created December 10, 2013 15:41
Show Gist options
  • Save mudrd8mz/7892662 to your computer and use it in GitHub Desktop.
Save mudrd8mz/7892662 to your computer and use it in GitHub Desktop.
Custom hack for moodle-mod_forum that causes f1.png avatar is used when displaying the post, instead of the default (smaller) f2.png
diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index 1966ec1..313bff9 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -3465,7 +3465,7 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
'aria-label' => $discussionbyuser));
$output .= html_writer::start_tag('div', array('class'=>'row header clearfix'));
$output .= html_writer::start_tag('div', array('class'=>'left picture'));
- $output .= $OUTPUT->user_picture($postuser, array('courseid'=>$course->id));
+ $output .= $OUTPUT->user_picture($postuser, array('courseid'=>$course->id, 'size' => 60));
$output .= html_writer::end_tag('div');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment