mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-28 01:30:05 +00:00
Show tag name for the stripped-tag category
Change-Id: I53546c11391fb2388dbcf3f70c0a21b2b1af9b09
This commit is contained in:
parent
9fa710334c
commit
a5e2f822f3
|
@ -120,7 +120,13 @@ class LintErrorsPager extends TablePager {
|
||||||
case 'details':
|
case 'details':
|
||||||
// While deletable-table-tag has params set, it adds no new information
|
// While deletable-table-tag has params set, it adds no new information
|
||||||
// and is not included here since the error category has the tag name.
|
// and is not included here since the error category has the tag name.
|
||||||
$hasNameCats = [ 'obsolete-tag', 'missing-end-tag', 'self-closed-tag', 'misnested-tag' ];
|
$hasNameCats = [
|
||||||
|
'obsolete-tag',
|
||||||
|
'missing-end-tag',
|
||||||
|
'self-closed-tag',
|
||||||
|
'misnested-tag',
|
||||||
|
'stripped-tag',
|
||||||
|
];
|
||||||
if ( in_array( $this->category, $hasNameCats ) && isset( $lintError->params['name'] ) ) {
|
if ( in_array( $this->category, $hasNameCats ) && isset( $lintError->params['name'] ) ) {
|
||||||
return Html::element( 'code', [], $lintError->params['name'] );
|
return Html::element( 'code', [], $lintError->params['name'] );
|
||||||
} elseif ( $this->category === 'bogus-image-options' && isset( $lintError->params['items'] ) ) {
|
} elseif ( $this->category === 'bogus-image-options' && isset( $lintError->params['items'] ) ) {
|
||||||
|
|
Loading…
Reference in a new issue