X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FHistoryAction.php;h=f7ac21b76e955dc369fcb4d6cc048dbeab1e4559;hb=380ae5f92a30b2d18458cf0e952c6dfd29d594ae;hp=0e964bf5cc18f736c0f2740bb8160ac3fd3997c4;hpb=7f2177324363fdbef68f18cffb0a28d42f892d70;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 0e964bf5cc..f7ac21b76e 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -335,8 +335,8 @@ class HistoryAction extends FormlessAction { * @return FeedItem */ function feedItem( $row ) { - $rev = new Revision( $row ); - $rev->setTitle( $this->getTitle() ); + $rev = new Revision( $row, 0, $this->getTitle() ); + $text = FeedUtils::formatDiffRow( $this->getTitle(), $this->getTitle()->getPreviousRevisionID( $rev->getId() ), @@ -611,7 +611,7 @@ class HistoryPager extends ReverseChronologicalPager { * Creates a submit button * * @param string $message Text of the submit button, will be escaped - * @param array $attributes Attributes + * @param array $attributes * @return string HTML output for the submit button */ function submitButton( $message, $attributes = [] ) { @@ -639,12 +639,10 @@ class HistoryPager extends ReverseChronologicalPager { */ function historyLine( $row, $next, $notificationtimestamp = false, $latest = false, $firstInList = false ) { - $rev = new Revision( $row ); - $rev->setTitle( $this->getTitle() ); + $rev = new Revision( $row, 0, $this->getTitle() ); if ( is_object( $next ) ) { - $prevRev = new Revision( $next ); - $prevRev->setTitle( $this->getTitle() ); + $prevRev = new Revision( $next, 0, $this->getTitle() ); } else { $prevRev = null; }