jenkins-bot has submitted this change and it was merged.
Change subject: Allow searching for local hits on central wiki
......................................................................
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
---
M special/SpecialAbuseLog.php
1 file changed, 5 insertions(+), 1 deletion(-)
Approvals:
Hoo man: Looks good to me, approved
jenkins-bot: Verified
diff --git a/special/SpecialAbuseLog.php b/special/SpecialAbuseLog.php
index 3aab66a..aead4be 100644
--- a/special/SpecialAbuseLog.php
+++ b/special/SpecialAbuseLog.php
@@ -229,7 +229,11 @@
}
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 ) {
--
To view, visit https://gerrit.wikimedia.org/r/181795
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic93a530ee4d2d083b38b0caed7ce02dacdecca6c
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Se4598 <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Se4598 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits