From: Alexandre Emsenhuber Date: Sun, 10 Oct 2010 09:56:54 +0000 (+0000) Subject: Replaced error suppression operator with wfSuppressWarnings()/wfRestoreWarnings() X-Git-Tag: 1.31.0-rc.0~34554 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=71dcf7ebebe068c439bdba8f93c08900294f5853;p=lhc%2Fweb%2Fwiklou.git Replaced error suppression operator with wfSuppressWarnings()/wfRestoreWarnings() --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4384504cc1..b32780ce79 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2278,7 +2278,8 @@ function wfIncrStats( $key ) { ); } $statline = "stats/{$wgDBname} - 1 1 1 1 1 {$key}\n"; - @socket_sendto( + wfSuppressWarnings(); + socket_sendto( $socket, $statline, strlen( $statline ), @@ -2286,6 +2287,7 @@ function wfIncrStats( $key ) { $wgUDPProfilerHost, $wgUDPProfilerPort ); + wfRestoreWarnings(); } elseif( $wgStatsMethod == 'cache' ) { global $wgMemc; $key = wfMemcKey( 'stats', $key );