On 12/09/2010 06:01 PM, Alexis Moinet wrote:
> Clayton wrote :
>> On 12/04/2010 12:39 AM, Platonides wrote:
>>> if( !preg_match( '/@(mailinator|binkmail).com$/', $user->getEmail() ) {
>
>> Seems straight forward, so I added the code (with and without the& in
>> front of the $message variable) to my LocalSettings.php... and it didn't
>> work so well. According to my error log it had a "PHP Parse Error:
>> syntax error, unexpected '{'" at the end of the first line of the if
>> statement. Funny thing is... I don't see a syntax error there though
>> (granted I'm not a php guru... still learning, so I might be missing
>> something).
>>
>> I tried a few variations on the function code (including the suggestion
>> from OQ) with the same results.... an unexpected '{'.
>>
>> So at this point I'm a little puzzled... any suggestions on where the
>> problem is?
>
> a closing parenthesis ')' is missing before the '{' ?
Ooops, so many ( ) that I lost count :-)
Fixed that, and it accepts the Hook... but it doesn't work.. I'll pick
that up in the root of this thread.
C.
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l