Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -81,16 +81,18 @@ |
82 | 82 | # And update recentchanges |
83 | 83 | if( $this->updateRecentChanges ) { |
84 | 84 | $titleObj = SpecialPage::getTitleFor( 'Log', $this->type ); |
85 | | - $rcComment = $this->getRcComment(); |
86 | | - RecentChange::notifyLog( $now, $titleObj, $this->doer, $rcComment, '', $this->type, |
| 85 | + RecentChange::notifyLog( $now, $titleObj, $this->doer, $this->getRcComment(), '', $this->type, |
87 | 86 | $this->action, $this->target, $this->comment, $this->params, $newId ); |
88 | 87 | } else if( $this->sendToUDP ) { |
| 88 | + # Don't send private logs to UDP |
| 89 | + if( isset($wgLogRestrictions[$this->type]) && $wgLogRestrictions[$this->type] !='*' ) { |
| 90 | + return true; |
| 91 | + } |
89 | 92 | # Notify external application via UDP. |
90 | 93 | # We send this to IRC but do not want to add it the RC table. |
91 | 94 | global $wgRC2UDPAddress, $wgRC2UDPOmitBots; |
92 | 95 | $titleObj = SpecialPage::getTitleFor( 'Log', $this->type ); |
93 | | - $rcComment = $this->getRcComment(); |
94 | | - $rc = RecentChange::newLogEntry( $now, $titleObj, $this->doer, $rcComment, '', |
| 96 | + $rc = RecentChange::newLogEntry( $now, $titleObj, $this->doer, $this->getRcComment(), '', |
95 | 97 | $this->type, $this->action, $this->target, $this->comment, $this->params, $newId ); |
96 | 98 | if( $wgRC2UDPAddress && ( !$rc->getAttribute('rc_bot') || !$wgRC2UDPOmitBots ) ) { |
97 | 99 | RecentChange::sendToUDP( $rc->getIRCLine() ); |