diff --git a/lib/weblib.php b/lib/weblib.php index 16fd139f4fc..09f9b178ee4 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1,6 +1,5 @@ id .'&course='. $courseid ; if ($target) { - $target=' target="_blank"'; + $target='onclick="return openpopup(\''.$url.'\');"'; } - $output = ''; + $output = ''; } else { $output = ''; }