X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FRecentChange.php;h=faad391044cf91cd3c6ebab7363b749c7c887cd5;hb=a2e8ecbcf7b403cfdfb155834017bf14662233c2;hp=557efadb0b3b35206b0421af848d6f7bae2f2fe3;hpb=dde5c80da6c262a59f1eaef82d8b0df22fc86bb1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 557efadb0b..faad391044 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -110,7 +110,7 @@ class RecentChange { /** * Obtain the recent change with a given rc_id value * - * @param $rcid Int rc_id value to retrieve + * @param int $rcid rc_id value to retrieve * @return RecentChange */ public static function newFromId( $rcid ) { @@ -120,7 +120,7 @@ class RecentChange { /** * Find the first recent change matching some specific conditions * - * @param $conds Array of conditions + * @param array $conds of conditions * @param $fname Mixed: override the method name in profiling/logs * @return RecentChange */ @@ -284,7 +284,9 @@ class RecentChange { public function notifyRC2UDP() { global $wgRC2UDPAddress, $wgRC2UDPOmitBots; # Notify external application via UDP - if ( $wgRC2UDPAddress && ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) { + # Omit RC_EXTERNAL changes: bots and tools can get these edits from the feed of the external wiki + if ( $wgRC2UDPAddress && $this->mAttribs['rc_type'] != RC_EXTERNAL && + ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) { self::sendToUDP( $this->getIRCLine() ); } } @@ -292,10 +294,10 @@ class RecentChange { /** * Send some text to UDP. * @see RecentChange::cleanupForIRC - * @param $line String: text to send - * @param $address String: defaults to $wgRC2UDPAddress. - * @param $prefix String: defaults to $wgRC2UDPPrefix. - * @param $port Int: defaults to $wgRC2UDPPort. (Since 1.17) + * @param string $line text to send + * @param string $address defaults to $wgRC2UDPAddress. + * @param string $prefix defaults to $wgRC2UDPPrefix. + * @param int $port defaults to $wgRC2UDPPort. (Since 1.17) * @return Boolean: success */ public static function sendToUDP( $line, $address = '', $prefix = '', $port = '' ) { @@ -321,7 +323,7 @@ class RecentChange { } /** - * Remove newlines, carriage returns and decode html entites + * Remove newlines, carriage returns and decode html entities * @param $text String * @return String */ @@ -685,7 +687,7 @@ class RecentChange { /** * Get an attribute value * - * @param $name String Attribute name + * @param string $name Attribute name * @return mixed */ public function getAttribute( $name ) {