Topic on Extension talk:EmailDomainCheck

Jump to navigation Jump to search (talkcontribs)

I got a question tho, can I use this if I want to allow multiple domains? (talkcontribs)

you have to change the code like follows:


$wgEmailDomain = "";


$wgEmailDomain=array("","",""); //Array of allowed domains


if ($host == $wgEmailDomain){


if in_array($host,$wgEmailDomain){

regards, mlu

Antstamper~mediawikiwiki (talkcontribs)

I got this error using the array...

PHP Parse error: syntax error, unexpected 'in_array' (T_STRING), expecting '('

relating to the line

if in_array($host,$wgEmailDomain){

Grateful for any ideas...

This post was posted by Antstamper~mediawikiwiki, but signed as Antstamper.

Antstamper~mediawikiwiki (talkcontribs)
Reply to "This is just what i need."