No need to do the safe_mode check on every request in $wgAdditionalMailParams is...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 14 Jan 2012 14:53:32 +0000 (14:53 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 14 Jan 2012 14:53:32 +0000 (14:53 +0000)
includes/Setup.php

index 5db6b0b..fe9818a 100644 (file)
@@ -498,12 +498,6 @@ $wgTitle = null;
 
 $wgDeferredUpdateList = array();
 
-// We need to check for safe_mode, because mail() will throw an E_NOTICE
-// on additional parameters
-if( !is_null($wgAdditionalMailParams) && wfIniGetBool('safe_mode') ) {
-       $wgAdditionalMailParams = null;
-}
-
 wfProfileOut( $fname . '-globals' );
 wfProfileIn( $fname . '-extensions' );