diff --git a/admin/report/security/index.php b/admin/report/security/index.php index 789e373c68e..4a003130a61 100644 --- a/admin/report/security/index.php +++ b/admin/report/security/index.php @@ -83,7 +83,7 @@ if ($issue and ($result = $issue(true))) { // print detail of one issue only $row = array(); - $row[0] = $result->name; + $row[0] = report_security_doc_link($issue, $result->name); $row[1] = $statusarr[$result->status]; $row[2] = $result->info; $row[3] = is_null($result->link) ? ' ' : $result->link; diff --git a/admin/report/security/lib.php b/admin/report/security/lib.php index d2fdb75ce25..a819d0b7852 100644 --- a/admin/report/security/lib.php +++ b/admin/report/security/lib.php @@ -67,6 +67,21 @@ function report_security_get_issue_list() { ); } +function report_security_doc_link($issue, $name) { + global $CFG; + + if (empty($CFG->docroot)) { + return $name; + } + + $lang = str_replace('_utf8', '', current_language()); + + $str = "docroot/$lang/report/security/$issue\">"; + $str .= "httpswwwroot/pix/docs.gif\" alt=\"\" />$name"; + + return $str; +} + ///============================================= /// Issue checks ///=============================================