1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 09:12:41 +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); $line_link);
} }
$message_markup[] = $message_markup[] = hsprintf(
'<li>'. '<li>'.
'<span class="lint-severity-'.phutil_escape_html($severity).'">'. '<span class="lint-severity-%s">%s</span> (%s) %s '.
phutil_escape_html(ucwords($severity)). 'at line '.$line_link.
'</span>'. '<p>%s</p>'.
' '. '</li>',
'('.phutil_escape_html($code).') '. $severity,
phutil_escape_html($name). ucwords($severity),
' at line '.$line_link. $code,
'<p>'.phutil_escape_html($description).'</p>'. $name,
'</li>'; $description);
} }
$lint_messages[] = $lint_messages[] =
'<li class="lint-file-block">'. '<li class="lint-file-block">'.