>> Matthew Betts <[email protected]> wrote: > Hi, > > Does any know if it's possible to have multiple contacts for the > ConfirmAccount extension please, to notify several people when an account > request is pending review? I tried two ways to give two addresses > to $wgConfirmAccountContact, once comma-separated and the second time > space-separated, and neither worked.
The patch below will let you use the syntax as well: $wgConfirmAccountContact = array ( '[email protected]', '[email protected]' ); //Marcin Index: RequestAccount_body.php =================================================================== --- RequestAccount_body.php (revision 84476) +++ RequestAccount_body.php (working copy) @@ -501,7 +501,12 @@ $this->confirmEmail( $name ); # Send mail to admin after e-mail has been confirmed if ( $wgConfirmAccountContact != '' ) { - $target = new MailAddress( $wgConfirmAccountContact ); + $target = array_map ( + create_function( '$address', 'return new MailAddress ( $address );' ), + is_array ( $wgConfirmAccountContact ) + ? $wgConfirmAccountContact + : array ( $wgConfirmAccountContact ) + ); $source = new MailAddress( $wgPasswordSender ); $title = SpecialPage::getTitleFor( 'ConfirmAccounts' ); $subject = wfMsgForContent( 'requestaccount-email-subj-admin' ); _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
