jenkins-bot has submitted this change and it was merged.

Change subject: Add UserGetReservedNames hook subscriber
......................................................................


Add UserGetReservedNames hook subscriber

bug: 54198
Change-Id: Ia38b5fd3696e667d85f8708a28123cf2c391a89a
---
M ArticleFeedbackv5.hooks.php
M ArticleFeedbackv5.php
2 files changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Matthias Mullie: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ArticleFeedbackv5.hooks.php b/ArticleFeedbackv5.hooks.php
index d4f902f..899857d 100644
--- a/ArticleFeedbackv5.hooks.php
+++ b/ArticleFeedbackv5.hooks.php
@@ -931,4 +931,13 @@
 
                return true;
        }
+
+       /**
+        * @param array $names
+        * @return bool
+        */
+       public function onUserGetReservedNames( &$names ) {
+               $names[] = 'msg:articlefeedbackv5-default-user';
+               return true;
+       }
 }
diff --git a/ArticleFeedbackv5.php b/ArticleFeedbackv5.php
index 7c0e9df..e5e28aa 100644
--- a/ArticleFeedbackv5.php
+++ b/ArticleFeedbackv5.php
@@ -442,6 +442,7 @@
 $wgHooks['ProtectionForm::save'][] = 
'ArticleFeedbackv5Hooks::onProtectionSave';
 $wgHooks['ProtectionForm::showLogExtract'][] = 
'ArticleFeedbackv5Hooks::onShowLogExtract';
 $wgHooks['UserLoginComplete'][] = 'ArticleFeedbackv5Hooks::userLoginComplete';
+$wgHooks['UserGetReservedNames'][] = 
'ArticleFeedbackv5Hooks::onUserGetReservedNames';
 
 // API Registration
 $wgAPIListModules['articlefeedbackv5-view-feedback'] = 
'ApiViewFeedbackArticleFeedbackv5';

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia38b5fd3696e667d85f8708a28123cf2c391a89a
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/ArticleFeedbackv5
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Matthias Mullie <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to