I got a question tho, can I use this if I want to allow multiple domains?
Topic on Extension talk:EmailDomainCheck
you have to change the code like follows:
replace:
$wgEmailDomain = "foo.com";
by:
$wgEmailDomain=array("news.com","foo.com","bar.com"); //Array of allowed domains
and
if ($host == $wgEmailDomain){
by
if in_array($host,$wgEmailDomain){
regards, mlu
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.
I fixed this with...
if (in_array ( $host , $wgEmailDomain )){
This post was posted by Antstamper~mediawikiwiki, but signed as Antstamper.