*Add some cute hooks; possible flaggedrevs use
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 25 Mar 2007 23:06:52 +0000 (23:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 25 Mar 2007 23:06:52 +0000 (23:06 +0000)
includes/PageHistory.php

index 94b55ea..ffb326d 100644 (file)
@@ -99,6 +99,8 @@ class PageHistory {
                        $wgOut->redirect( $wgTitle->getLocalURL( "action=history&limit={$limit}&dir=prev" ) );
                        return;
                }
+               
+               wfRunHooks( 'BeginPageHistoryBeforeList', array( &$this , &$s ) );
 
                /** 
                 * Do the list
@@ -246,6 +248,9 @@ class PageHistory {
                if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
                        $s .= ' '.$this->mSkin->generateRollback( $rev );
                }
+               
+               wfRunHooks( 'PageHistoryLineEnding', array( &$row , &$s ) );
+               
                $s .= "</li>\n";
 
                return $s;