diff options
author | DannyS712 <DannyS712.enwiki@gmail.com> | 2020-04-18 00:21:26 +0000 |
---|---|---|
committer | DannyS712 <DannyS712.enwiki@gmail.com> | 2020-04-18 01:24:54 +0000 |
commit | af7f397ccc902ffe1bc62cec08bd5d3906fa351d (patch) | |
tree | 6416236c04ebb0ad69ec9e93ab278ba62868cd32 /includes/actions/RollbackAction.php | |
parent | 9cfc05ce3a6590f5801d80784ab5c283bba35b52 (diff) | |
download | mediawikicore-af7f397ccc902ffe1bc62cec08bd5d3906fa351d.tar.gz mediawikicore-af7f397ccc902ffe1bc62cec08bd5d3906fa351d.zip |
Pass RevisionRecord to Linker methods
Hard deprecation of passing Revision objects will follow soon,
but until that is ready core calls can be updated
There is some code cleanup that could be done around the calls, but
to simplify review no other changes are made.
Bug: T249561
Change-Id: Ifcfb3811650decffeaa87dc033c41fd1710b47a6
Diffstat (limited to 'includes/actions/RollbackAction.php')
-rw-r--r-- | includes/actions/RollbackAction.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/actions/RollbackAction.php b/includes/actions/RollbackAction.php index 1f6a21e07192..e6d938dc095d 100644 --- a/includes/actions/RollbackAction.php +++ b/includes/actions/RollbackAction.php @@ -164,8 +164,8 @@ class RollbackAction extends FormAction { $this->getOutput()->setPageTitle( $this->msg( 'actioncomplete' ) ); $this->getOutput()->setRobotPolicy( 'noindex,nofollow' ); - $old = Linker::revUserTools( $current ); - $new = Linker::revUserTools( $target ); + $old = Linker::revUserTools( $current->getRevisionRecord() ); + $new = Linker::revUserTools( $target->getRevisionRecord() ); $this->getOutput()->addHTML( $this->msg( 'rollback-success' ) ->rawParams( $old, $new ) |