Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -166,6 +166,9 @@ |
167 | 167 | |
168 | 168 | # Set the ID |
169 | 169 | $this->mAttribs['rc_id'] = $dbw->insertId(); |
| 170 | + |
| 171 | + # Notify extensions |
| 172 | + wfRunHooks( 'RecentChange_save', array( &$this ) ); |
170 | 173 | |
171 | 174 | # Notify external application via UDP |
172 | 175 | if( $wgRC2UDPAddress && ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) { |
— | — | @@ -193,9 +196,6 @@ |
194 | 197 | $this->mAttribs['rc_minor'], |
195 | 198 | $this->mAttribs['rc_last_oldid'] ); |
196 | 199 | } |
197 | | - |
198 | | - # Notify extensions |
199 | | - wfRunHooks( 'RecentChange_save', array( &$this ) ); |
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -741,7 +741,7 @@ |
742 | 742 | /** |
743 | 743 | * When an edit is made to a page that can't be reviewed, autopatrol if allowed. |
744 | 744 | */ |
745 | | - public static function autoMarkPatrolled( $rc ) { |
| 745 | + public static function autoMarkPatrolled( &$rc ) { |
746 | 746 | global $wgUser; |
747 | 747 | if( empty($rc->mAttribs['rc_this_oldid']) ) { |
748 | 748 | return true; |
— | — | @@ -752,6 +752,7 @@ |
753 | 753 | # won't autopatrol. May or may not be useful... |
754 | 754 | if( FlaggedRevs::revIsFlagged($rc->getTitle(),$rc->mAttribs['rc_this_oldid'],GAID_FOR_UPDATE) ) { |
755 | 755 | RevisionReview::updateRecentChanges( $rc->getTitle(), $rc->mAttribs['rc_this_oldid'] ); |
| 756 | + $rc->mAttribs['rc_patrolled'] = 1; // make sure irc/email notifs now status |
756 | 757 | } |
757 | 758 | return true; |
758 | 759 | } |
— | — | @@ -778,6 +779,7 @@ |
779 | 780 | if( $record ) { |
780 | 781 | PatrolLog::record( $rc->mAttribs['rc_id'], true ); |
781 | 782 | } |
| 783 | + $rc->mAttribs['rc_patrolled'] = 1; // make sure irc/email notifs now status |
782 | 784 | } |
783 | 785 | return true; |
784 | 786 | } |