No need to do the safe_mode check on every request in $wgAdditionalMailParams is set; that variable will not be passed to mail() if safe_mode is enabled since r99411

This commit is contained in:
Alexandre Emsenhuber 2012-01-14 14:53:32 +00:00
parent caf5df17ab
commit 66587c2574

View 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' );