From 97aaaec64739a03cb39bbe3d4c8bfc6201232183 Mon Sep 17 00:00:00 2001 From: jerome Date: Fri, 2 May 2008 05:17:16 +0000 Subject: [PATCH] MDL-12864 fix bad XHTML in the messaging popup --- lib/weblib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 4fd9c3d2c30..6ae3fe1bce6 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 = ''; + $output = ''; } else { $output = ''; }