mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 23:44:17 +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->exactMatch ) {
|
||||||
|
if ( $this->title !== '' ) {
|
||||||
$queryBuilder->where( [ "page_title" => $this->title ] );
|
$queryBuilder->where( [ "page_title" => $this->title ] );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$queryBuilder->where( $this->mDb->expr(
|
$queryBuilder->where( $this->mDb->expr(
|
||||||
'page_title', IExpression::LIKE, new LikeValue( $this->title, $this->mDb->anyString() )
|
'page_title', IExpression::LIKE, new LikeValue( $this->title, $this->mDb->anyString() )
|
||||||
)
|
) );
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if ( $mainConfig->get( 'LinterUserInterfaceTagAndTemplateStage' ) ) {
|
if ( $mainConfig->get( 'LinterUserInterfaceTagAndTemplateStage' ) ) {
|
||||||
if ( $this->throughTemplate !== 'all' ) {
|
if ( $this->throughTemplate !== 'all' ) {
|
||||||
|
|
Loading…
Reference in a new issue