1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00

Use hsprintf() in lint message

Test Plan: Display revision with lint problems

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1578
This commit is contained in:
vrana 2012-02-06 10:07:29 -08:00
parent e8a7d8a905
commit 4ee714d404

View file

@ -65,17 +65,17 @@ final class DifferentialLintFieldSpecification
),
$line_link);
}
$message_markup[] =
$message_markup[] = hsprintf(
'<li>'.
'<span class="lint-severity-'.phutil_escape_html($severity).'">'.
phutil_escape_html(ucwords($severity)).
'</span>'.
' '.
'('.phutil_escape_html($code).') '.
phutil_escape_html($name).
' at line '.$line_link.
'<p>'.phutil_escape_html($description).'</p>'.
'</li>';
'<span class="lint-severity-%s">%s</span> (%s) %s '.
'at line '.$line_link.
'<p>%s</p>'.
'</li>',
$severity,
ucwords($severity),
$code,
$name,
$description);
}
$lint_messages[] =
'<li class="lint-file-block">'.