Created
December 10, 2013 15:41
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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