mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Allow searching for local hits on central wiki
You can now specifiy on a central wiki on the AbuseFilterLog in the wiki-field the local wfWikiID() to search for filter hits on this wiki. background: for local hits afl_wiki doesn't contain the wiki name but is NULL. Bug: T85323 Change-Id: Ic93a530ee4d2d083b38b0caed7ce02dacdecca6c
This commit is contained in:
parent
b6ff5663ab
commit
1995541e3f
|
@ -229,7 +229,11 @@ class SpecialAbuseLog extends SpecialPage {
|
|||
}
|
||||
|
||||
if ( $this->mSearchWiki ) {
|
||||
$conds['afl_wiki'] = $this->mSearchWiki;
|
||||
if ( $this->mSearchWiki == wfWikiID() ) {
|
||||
$conds['afl_wiki'] = null;
|
||||
} else {
|
||||
$conds['afl_wiki'] = $this->mSearchWiki;
|
||||
}
|
||||
}
|
||||
|
||||
if ( $this->mSearchFilter ) {
|
||||
|
|
Loading…
Reference in a new issue