Skip to content

Commit

Permalink
MDL-23784 fixed docs icon from security report
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 12, 2010
1 parent 0f17961 commit 5402c57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions admin/report/security/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ function report_security_get_issue_list() {
}

function report_security_doc_link($issue, $name) {
global $CFG;
global $CFG, $OUTPUT;

if (empty($CFG->docroot)) {
return $name;
}

return '<a onclick="this.target=\'docspopup\'" href="' . get_docs_url('report/security/') . $issue . '">'
. '<img class="iconhelp" src="' . $CFG->httpswwwroot . '/pix/docs.gif" alt="" />' . $name . '</a>';
return $OUTPUT->doc_link('report/security/'.$issue, $name);
}

///=============================================
Expand Down

0 comments on commit 5402c57

Please sign in to comment.