Fixed string for user images
authormoodler <moodler>
Thu, 23 Sep 2004 03:17:25 +0000 (03:17 +0000)
committermoodler <moodler>
Thu, 23 Sep 2004 03:17:25 +0000 (03:17 +0000)
lib/weblib.php

index 0c29d3e844a08e6e48334f89a2132868ca464461..a252c282eecd91d6b55a8f34976c24720765a62e 100644 (file)
@@ -1639,10 +1639,10 @@ function print_user_picture($userid, $courseid, $picture, $large=false, $returns
     }
     if ($picture) {  // Print custom user picture
         if ($CFG->slasharguments) {        // Use this method if possible for better caching
-            $output .= '<img align="middle" src="'. $CFG->wwwroot .'/user/pix.php/'. $userid .'/'. $file.jpg .'"'.
+            $output .= '<img align="middle" src="'. $CFG->wwwroot .'/user/pix.php/'. $userid .'/'. $file .'.jpg"'.
                        ' border="0" width="'. $size .'" height="'. $size .'" alt="" />';
         } else {
-            $output .= '<img align="middle" src="'. $CFG->wwwroot .'/user/pix.php?file=/'. $userid .'/'. $file.jpg .'"'.
+            $output .= '<img 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)
@@ -2869,4 +2869,4 @@ function print_speller_button () {
     echo '<input type="button" value="Check spelling" onclick="openSpellChecker();" />'."\n";
 }
 // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
-?>
\ No newline at end of file
+?>