Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/146027

Change subject: Add UserMergeAccountFields subscriber
......................................................................

Add UserMergeAccountFields subscriber

Bug: 67771
Change-Id: I480320a471edc194e9d1239e76a4e37e4e69c771
---
M GlobalBlocking.class.php
M GlobalBlocking.php
2 files changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GlobalBlocking 
refs/changes/27/146027/1

diff --git a/GlobalBlocking.class.php b/GlobalBlocking.class.php
index 55db968..51041dc 100644
--- a/GlobalBlocking.class.php
+++ b/GlobalBlocking.class.php
@@ -587,4 +587,10 @@
 
                return true;
        }
+
+       static function onUserMergeAccountFields( array &$updateFields ) {
+               $updateFields[] = array( 'global_block_whitelist', 'gbw_by', 
'gbw_by_text' );
+
+               return true;
+       }
 }
diff --git a/GlobalBlocking.php b/GlobalBlocking.php
index 356dbf7..b1a06fc 100644
--- a/GlobalBlocking.php
+++ b/GlobalBlocking.php
@@ -34,6 +34,7 @@
 $wgHooks['SpecialPasswordResetOnSubmit'][] = 
'GlobalBlocking::onSpecialPasswordResetOnSubmit';
 $wgHooks['OtherBlockLogLink'][] = 'GlobalBlocking::getBlockLogLink';
 $wgHooks['SpecialContributionsBeforeMainOutput'][] = 
'GlobalBlocking::onSpecialContributionsBeforeMainOutput';
+$wgHooks['UserMergeAccountFields'][] = 
'GlobalBlocking::onUserMergeAccountFields';
 
 $wgAutoloadClasses['SpecialGlobalBlock'] = "$dir/SpecialGlobalBlock.php";
 $wgSpecialPages['GlobalBlock'] = 'SpecialGlobalBlock';

-- 
To view, visit https://gerrit.wikimedia.org/r/146027
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I480320a471edc194e9d1239e76a4e37e4e69c771
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalBlocking
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to