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

Change subject: Use modern hook registration for Amazon
......................................................................


Use modern hook registration for Amazon

Hooks::register instead of $wgHooks['name'][]

Bug: T108112
Change-Id: I264c67757d49e24455ff7345a8a3ae6609fc0854
---
M amazon_gateway/amazon_gateway.body.php
1 file changed, 1 insertion(+), 3 deletions(-)

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



diff --git a/amazon_gateway/amazon_gateway.body.php 
b/amazon_gateway/amazon_gateway.body.php
index 035a918..87dbcf8 100644
--- a/amazon_gateway/amazon_gateway.body.php
+++ b/amazon_gateway/amazon_gateway.body.php
@@ -29,9 +29,7 @@
         * Show the special page
         */
        protected function handleRequest() {
-               global $wgHooks;
-
-               $wgHooks['MakeGlobalVariablesScript'][] = array( 
$this->adapter, 'setClientVariables' );
+               Hooks::register( 'MakeGlobalVariablesScript', array( 
$this->adapter, 'setClientVariables' ) );
                $this->getOutput()->allowClickjacking();
 
                $this->setHeaders();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I264c67757d49e24455ff7345a8a3ae6609fc0854
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: amazon
Gerrit-Owner: Ejegg <[email protected]>
Gerrit-Reviewer: AndyRussG <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Ssmith <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to