Use wfGetNull() instead of hardcoded /dev/null
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 2 Jul 2009 00:55:48 +0000 (00:55 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 2 Jul 2009 00:55:48 +0000 (00:55 +0000)
includes/ProxyTools.php

index bb5c85a..5a3919b 100644 (file)
@@ -174,7 +174,7 @@ function wfProxyCheck() {
                                                escapeshellarg( $port ),
                                                escapeshellarg( $url )
                                                ));
-                       exec( "php $params &>/dev/null &" );
+                       exec( "php $params &>" . wfGetNull() . " &" );
                }
                # Set MemCached key
                $wgMemc->set( $mcKey, 1, $wgProxyMemcExpiry );