// 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;
);
}
+function report_security_doc_link($issue, $name) {
+ global $CFG;
+
+ if (empty($CFG->docroot)) {
+ return $name;
+ }
+
+ $lang = str_replace('_utf8', '', current_language());
+
+ $str = "<a onclick=\"this.target='docspopup'\" href=\"$CFG->docroot/$lang/report/security/$issue\">";
+ $str .= "<img class=\"iconhelp\" src=\"$CFG->httpswwwroot/pix/docs.gif\" alt=\"\" />$name</a>";
+
+ return $str;
+}
+
///=============================================
/// Issue checks
///=============================================