]> git.mjollnir.org Git - moodle.git/commitdiff
XHTML Strict for user images MDL-7861
authormoodler <moodler>
Thu, 4 Jan 2007 15:42:49 +0000 (15:42 +0000)
committermoodler <moodler>
Thu, 4 Jan 2007 15:42:49 +0000 (15:42 +0000)
lib/weblib.php

index ec43b4cd3a46d17dc43a623e7996751b2d0110fa..cd21c2aba983408a46ab3148bc80b9aad48bffef 100644 (file)
@@ -3131,7 +3131,7 @@ function print_user_picture($userid, $courseid, $picture, $size=0, $return=false
         }
     } else {         // Print default user pictures (use theme version if available)
         $class .= " defaultuserpic";
-        $src =  "$CFG->pixpath/u/$file.png\"";
+        $src =  "$CFG->pixpath/u/$file.png";
     }
     if (!$alttext) {
         $imagealt = '';
@@ -3143,8 +3143,7 @@ function print_user_picture($userid, $courseid, $picture, $size=0, $return=false
         }
     }
 
-    $output .= "<img class=\"$class\" align=\"middle\" src=\"$src".
-                   " border=\"0\" width=\"$size\" height=\"$size\" alt=\"".s($imagealt)."\" />";
+    $output .= '<img class="'.$class.'" src="'.$src.'" alt="'.s($imagealt).'" />';
     if ($link) {
         $output .= '</a>';
     }