X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Factions%2FHistoryAction.php;h=f7ac21b76e955dc369fcb4d6cc048dbeab1e4559;hp=0e964bf5cc18f736c0f2740bb8160ac3fd3997c4;hb=90232b6f36ee5a1473f2e865cc7a72d0014db4c7;hpb=78418f5728259c024ac3b2016e1edd0ab794c9c0 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; }