MDL-12864 fix bad XHTML in the messaging popup

This commit is contained in:
jerome
2008-05-02 05:17:16 +00:00
parent 5e6d7b8d6b
commit 97aaaec647
+3 -2
View File
@@ -4351,10 +4351,11 @@ function print_user_picture($user, $courseid, $picture=NULL, $size=0, $return=fa
}
if ($link) {
$url = '/user/view.php?id='. $user->id .'&course='. $courseid ;
if ($target) {
$target=' target="_blank"';
$target='onclick="return openpopup(\''.$url.'\');"';
}
$output = '<a '.$target.' href="'. $CFG->wwwroot .'/user/view.php?id='. $user->id .'&amp;course='. $courseid .'">';
$output = '<a '.$target.' href="'. $CFG->wwwroot . $url .'">';
} else {
$output = '';
}