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

Change subject: Remove use of deprecated wfRunHooks
......................................................................


Remove use of deprecated wfRunHooks

Change-Id: Ib4e61f99e73799ce3e6b148a68083de2bba7ae07
---
M SpecialContactFundraiser.php
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  Jforrester: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/SpecialContactFundraiser.php b/SpecialContactFundraiser.php
index ea1c1a2..cab6d47 100644
--- a/SpecialContactFundraiser.php
+++ b/SpecialContactFundraiser.php
@@ -304,7 +304,7 @@
                        )->inContentLanguage()->text();
                }
 
-               if( wfRunHooks( 'ContactForm', array( &$to, &$replyto, 
&$subject, &$this->text ) ) ) {
+               if( Hooks::run( 'ContactForm', array( &$to, &$replyto, 
&$subject, &$this->text ) ) ) {
 
                        wfDebug( "$fname: sending mail from 
".$from->toString()." to ".$to->toString()." replyto 
".($replyto==null?'-/-':$replyto->toString())."\n" );
 
@@ -320,7 +320,7 @@
                                // unless they are emailing themselves, in 
which case one copy of the message is sufficient.
                                if ($this->cc_me && $replyto) {
                                        $cc_subject = 
wfMessage('emailccsubject', $this->target->getName(), $subject)->text();
-                                       if( wfRunHooks( 'ContactForm', array( 
&$from, &$replyto, &$cc_subject, &$this->text ) ) ) {
+                                       if( Hooks::run( 'ContactForm', array( 
&$from, &$replyto, &$cc_subject, &$this->text ) ) ) {
                                                wfDebug( "$fname: sending cc 
mail from ".$from->toString()." to ".$replyto->toString()."\n" );
                                                $ccResult = UserMailer::send( 
$replyto, $from, $cc_subject, $this->text );
                                                if( !$ccResult->isOK() ) {
@@ -342,7 +342,7 @@
                                        $returnto = SpecialPage::getTitleFor( 
"Contact" );
                                }
                                $wgOut->redirect( $returnto->getFullUrl() );
-                               wfRunHooks( 'ContactFromComplete', array( $to, 
$replyto, $subject, $this->text ) );
+                               Hooks::run( 'ContactFromComplete', array( $to, 
$replyto, $subject, $this->text ) );
                        }
                }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib4e61f99e73799ce3e6b148a68083de2bba7ae07
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContactPageFundraiser
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to