Se4598 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/181795
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter
refs/changes/95/181795/1
diff --git a/special/SpecialAbuseLog.php b/special/SpecialAbuseLog.php
index 00ca4ce..90aeedc 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: newchange
Gerrit-Change-Id: Ic93a530ee4d2d083b38b0caed7ce02dacdecca6c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Se4598 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits