mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Utilize phutil_render_tag()
Test Plan: Display diff with lint error. Reviewers: pad, epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D1428
This commit is contained in:
parent
5f1438354b
commit
8bed2f4387
1 changed files with 6 additions and 4 deletions
|
@ -56,10 +56,12 @@ final class DifferentialLintFieldSpecification
|
|||
|
||||
$line_link = phutil_escape_html($line);
|
||||
if (isset($path_changesets[$path])) {
|
||||
$href = '#C'.$path_changesets[$path].'NL'.$line;
|
||||
$line_link = '<a href="'.phutil_escape_html($href).'">'.
|
||||
$line_link.
|
||||
'</a>';
|
||||
$line_link = phutil_render_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '#C'.$path_changesets[$path].'NL'.$line,
|
||||
),
|
||||
$line_link);
|
||||
}
|
||||
$message_markup[] =
|
||||
'<li>'.
|
||||
|
|
Loading…
Reference in a new issue