mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-27 09:10:05 +00:00
Ignore "exact match" title when the title is not given
Restore a check removed in 3b3729ad4d
.
Bug: T353860
Change-Id: I4722596433247a751d736ae35d9e3af9ac9d94cb
This commit is contained in:
parent
50fd39fc10
commit
46e44bc694
|
@ -134,12 +134,13 @@ class LintErrorsPager extends TablePager {
|
|||
}
|
||||
|
||||
if ( $this->exactMatch ) {
|
||||
if ( $this->title !== '' ) {
|
||||
$queryBuilder->where( [ "page_title" => $this->title ] );
|
||||
}
|
||||
} else {
|
||||
$queryBuilder->where( $this->mDb->expr(
|
||||
'page_title', IExpression::LIKE, new LikeValue( $this->title, $this->mDb->anyString() )
|
||||
)
|
||||
);
|
||||
) );
|
||||
}
|
||||
if ( $mainConfig->get( 'LinterUserInterfaceTagAndTemplateStage' ) ) {
|
||||
if ( $this->throughTemplate !== 'all' ) {
|
||||
|
|
Loading…
Reference in a new issue