From: Aaron Schulz Date: Sun, 25 Mar 2007 23:06:52 +0000 (+0000) Subject: *Add some cute hooks; possible flaggedrevs use X-Git-Tag: 1.31.0-rc.0~53615 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=514e37c2d89364e49ea5dcd91dcd615fbca29a0d;p=lhc%2Fweb%2Fwiklou.git *Add some cute hooks; possible flaggedrevs use --- diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 94b55eab47..ffb326d77f 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -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 .= "\n"; return $s;