Updating the PHP Code Sniffer UI plugin to fix the line number link.

This commit is contained in:
Stan Gumeniuk 2014-09-17 14:59:44 +04:00 committed by Dan Cryer
parent c02795988c
commit 091a025eb5

View file

@ -49,7 +49,7 @@ var phpcsPlugin = PHPCI.UiPlugin.extend({
if (PHPCI.fileLinkTemplate) {
var fileLink = PHPCI.fileLinkTemplate.replace('{FILE}', file);
fileLink = fileLink.replace('{LINE}', errors[i].line_start);
fileLink = fileLink.replace('{LINE}', errors[i].line);
file = '<a target="_blank" href="'+fileLink+'">' + file + '</a>';
}