MDL-12864 fix bad XHTML in the messaging popup
This commit is contained in:
+3
-2
@@ -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 .'&course='. $courseid .'">';
|
||||
$output = '<a '.$target.' href="'. $CFG->wwwroot . $url .'">';
|
||||
} else {
|
||||
$output = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user