Make sure feeds reflect changes due to flaggedrevs
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 9 Jan 2009 18:05:58 +0000 (18:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 9 Jan 2009 18:05:58 +0000 (18:05 +0000)
includes/RecentChange.php

index b5345d0..5c6bddd 100644 (file)
@@ -166,6 +166,9 @@ class RecentChange
 
                # Set the ID
                $this->mAttribs['rc_id'] = $dbw->insertId();
+               
+               # Notify extensions
+               wfRunHooks( 'RecentChange_save', array( &$this ) );
 
                # Notify external application via UDP
                if( $wgRC2UDPAddress && ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) {
@@ -193,9 +196,6 @@ class RecentChange
                                $this->mAttribs['rc_minor'],
                                $this->mAttribs['rc_last_oldid'] );
                }
-
-               # Notify extensions
-               wfRunHooks( 'RecentChange_save', array( &$this ) );
        }
 
        /**