Permalink
Browse files

Bug MDL-8520. Adding target= to the logs buttons.

  • Loading branch information...
1 parent 4db3f36 commit 552ae418de3af63d16861b73f5ab4544bc003659 mchurch committed Jun 28, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/weblib.php
View
@@ -4469,7 +4469,8 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
if ($selectmod and has_capability('moodle/site:viewreports', $context)) {
$logstext = get_string('alllogs');
- $logslink = '<li>'."\n".'<a title="'.$logstext.'" '.$CFG->frametarget.' href="'.
+ $logslink = '<li>'."\n".'<a title="'.$logstext.'" '.'onclick="this.target=\''.$CFG->framename.'\';"'.
+ ' href="'.
$CFG->wwwroot.'/course/report/log/index.php?chooselog=1&amp;user=0&amp;date=0&amp;id='.
$course->id.'&amp;modid='.$selectmod->cm.'">'.
'<img class="icon log" src="'.$CFG->pixpath.'/i/log.gif" alt="'.$logstext.'" /></a>'."\n".'</li>';

0 comments on commit 552ae41

Please sign in to comment.