hook for RC events
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 30 Sep 2006 12:34:53 +0000 (12:34 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 30 Sep 2006 12:34:53 +0000 (12:34 +0000)
includes/RecentChange.php

index fff45a7..ebd4b33 100644 (file)
@@ -173,7 +173,7 @@ class RecentChange
                        }
                }
 
-               // E-mail notifications
+               # E-mail notifications
                global $wgUseEnotif;
                if( $wgUseEnotif ) {
                        # this would be better as an extension hook
@@ -187,6 +187,8 @@ class RecentChange
                                $this->mAttribs['rc_last_oldid'] );
                }
 
+               # Notify extensions
+               wfRunHooks( 'RecentChange_save', array( &$this ) );
        }
 
        # Marks a certain row as patrolled