From 514e37c2d89364e49ea5dcd91dcd615fbca29a0d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 25 Mar 2007 23:06:52 +0000 Subject: [PATCH] *Add some cute hooks; possible flaggedrevs use --- includes/PageHistory.php | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.20.1