<?php // $Id$
-
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
}
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 = '';
}