Permalink
Browse files

added class for userpic for better formatting via CSS in 2 additional…

… lines. Same changes as in 15_STABLE. Merging produced wired version numbers??? So I added the changes here too.
  • Loading branch information...
1 parent 7d0fdfd commit b5522c9250edd1f13f8be91a6237fcdec50e9373 urs_hunkler committed Jul 6, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/weblib.php
View
@@ -2481,10 +2481,10 @@ function print_user_picture($userid, $courseid, $picture, $size=0, $returnstring
}
if ($picture) { // Print custom user picture
if ($CFG->slasharguments) { // Use this method if possible for better caching
- $output .= '<img class="userpicture" align="middle" src="'. $CFG->wwwroot .'/user/pix.php/'. $userid .'/'. $file .'.jpg"'.
+ $output .= '<img class="userpicture defaultuserpic" align="middle" src="'. $CFG->wwwroot .'/user/pix.php/'. $userid .'/'. $file .'.jpg"'.
' border="0" width="'. $size .'" height="'. $size .'" alt="" />';
} else {
- $output .= '<img class="userpicture" align="middle" src="'. $CFG->wwwroot .'/user/pix.php?file=/'. $userid .'/'. $file .'.jpg"'.
+ $output .= '<img class="userpicture defaultuserpic" align="middle" src="'. $CFG->wwwroot .'/user/pix.php?file=/'. $userid .'/'. $file .'.jpg"'.
' border="0" width="'. $size .'" height="'. $size .'" alt="" />';
}
} else { // Print default user pictures (use theme version if available)

0 comments on commit b5522c9

Please sign in to comment.