$msgParams as far as I can tell will be ```array( 'parsemag', 'language' => $params['language'] )```, correct? If so, this shouldn't be passed into the function call as it won't do anything (it will think 'parsemag' is the first parameter to the message), but you should instead just give a language variable equal to ```$params['language']``` and use ```wfMessage( 'userlogin-email-footer-line2' )->inLanguage( $language )->text();``` The old 'parsemag' option is equivalent to the ```->text()``` output mode (assuming ```text()``` is actually required here, ```plain()``` might do). Same goes for the one below.