Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/105471
Change subject: Swap method for closure
......................................................................
Swap method for closure
Change-Id: I848f19c34d6e302a71a3d0a845add5fdfea5acd8
---
M wmf-config/CommonSettings.php
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/71/105471/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 4380d4d..2c0dd60 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -925,7 +925,7 @@
$wgNoFollowLinks = true; // In case the MediaWiki default changed, bug 42594
# XFF log for vandal tracking
-function wfLogXFF() {
+$wgExtensionFunctions[] = function() {
global $wmfUdp2logDest;
if ( ( @$_SERVER['REQUEST_METHOD'] ) == 'POST' ) {
$uri = ( $_SERVER['HTTPS'] ? 'https://' : 'http://' ) .
@@ -946,10 +946,8 @@
WebRequest::detectProtocol(),
"udp://$wmfUdp2logDest/localhost"
);
- }
- }
+ } }
}
-$wgExtensionFunctions[] = 'wfLogXFF';
// bug 24313, turn off minordefault on enwiki
if ( $wgDBname == 'enwiki' ) {
--
To view, visit https://gerrit.wikimedia.org/r/105471
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I848f19c34d6e302a71a3d0a845add5fdfea5acd8
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits