Move up devunt's name to Developers
[lhc/web/wiklou.git] / includes / profiler / output / ProfilerOutputUdp.php
index e8a73e0..7da03c1 100644 (file)
@@ -40,18 +40,25 @@ class ProfilerOutputUdp extends ProfilerOutput {
 
        public function __construct( Profiler $collector, array $params ) {
                parent::__construct( $collector, $params );
+               global $wgUDPProfilerPort, $wgUDPProfilerHost, $wgUDPProfilerFormatString;
 
                // Initialize port, host, and format from config, back-compat if available
                if ( isset( $this->params['udpport'] ) ) {
                        $this->port = $this->params['udpport'];
+               } elseif ( $wgUDPProfilerPort ) {
+                       $this->port = $wgUDPProfilerPort;
                }
 
                if ( isset( $this->params['udphost'] ) ) {
                        $this->host = $this->params['udphost'];
+               } elseif ( $wgUDPProfilerHost ) {
+                       $this->host = $wgUDPProfilerHost;
                }
 
                if ( isset( $this->params['udpformat'] ) ) {
                        $this->format = $this->params['udpformat'];
+               } elseif ( $wgUDPProfilerFormatString ) {
+                       $this->format = $wgUDPProfilerFormatString;
                }
        }