MDL-12864 fix bad XHTML in the messaging popup, merged from 19

This commit is contained in:
jerome
2008-05-02 05:20:40 +00:00
parent 04b687e824
commit b342e64f30
+3 -3
View File
@@ -1,6 +1,5 @@
<?php // $Id$
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
@@ -4315,10 +4314,11 @@ function print_user_picture($user, $courseid, $picture=NULL, $size=0, $return=fa
}
if ($link) {
$url = '/user/view.php?id='. $user->id .'&amp;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 = '';
}