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:
se4598 2014-12-25 19:29:00 +01:00 committed by Hoo man
parent b6ff5663ab
commit 1995541e3f

View file

@ -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 ) {