mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-23784 fixed docs icon from security report
This commit is contained in:
parent
0f17961d4a
commit
5402c577eb
@ -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);
|
||||
}
|
||||
|
||||
///=============================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user