Add DROP INDEX support to DatabaseSqlite::replaceVars method
[lhc/web/wiklou.git] / includes / RecentChange.php
index 45a8fbc..980bd0a 100644 (file)
@@ -297,12 +297,18 @@ class RecentChange {
         * @deprecated since 1.22
         */
        public static function sendToUDP( $line, $address = '', $prefix = '', $port = '' ) {
-               global $wgRC2UDPPrefix, $wgRC2UDPInterwikiPrefix;
+               global $wgRC2UDPAddress, $wgRC2UDPInterwikiPrefix, $wgRC2UDPPort, $wgRC2UDPPrefix;
+
                wfDeprecated( __METHOD__, '1.22' );
 
+               # Assume default for standard RC case
+               $address = $address ? $address : $wgRC2UDPAddress;
+               $prefix = $prefix ? $prefix : $wgRC2UDPPrefix;
+               $port = $port ? $port : $wgRC2UDPPort;
+
                $engine = new UDPRCFeedEngine();
                $feed = array(
-                       'uri' => "udp://$address:$port/$wgRC2UDPPrefix",
+                       'uri' => "udp://$address:$port/$prefix",
                        'formatter' => 'IRCColourfulRCFeedFormatter',
                        'add_interwiki_prefix' => $wgRC2UDPInterwikiPrefix,
                );
@@ -319,8 +325,8 @@ class RecentChange {
                foreach ( $wgRCFeeds as $feed ) {
                        $engine = self::getEngine( $feed['uri'] );
 
-                       if ( isset( $this->mExtras['actionCommentIRC'] ) ) {
-                               $actionComment = $this->mExtras['actionCommentIRC'];
+                       if ( isset( $this->mExtra['actionCommentIRC'] ) ) {
+                               $actionComment = $this->mExtra['actionCommentIRC'];
                        } else {
                                $actionComment = null;
                        }