]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12864 fix bad XHTML in the messaging popup, merged from 19
authorjerome <jerome>
Fri, 2 May 2008 05:20:40 +0000 (05:20 +0000)
committerjerome <jerome>
Fri, 2 May 2008 05:20:40 +0000 (05:20 +0000)
lib/weblib.php

index 16fd139f4fcb73603c1a2321c9f41aa72efbe6fd..09f9b178ee4b7b894c7552f2b717c44228621308 100644 (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 = '';
     }