Pass rcid as integer to DifferenceEngine::createDifferenceEngine
Found by phan strict checks Change-Id: I3c0454c1df66f6a04c3392acaf8368040d03eb77
This commit is contained in:
parent
d6818823a2
commit
0cf2ec2585
3 changed files with 3 additions and 3 deletions
|
|
@ -256,7 +256,7 @@ class RollbackAction extends FormAction {
|
|||
$this->getContext(),
|
||||
$current->getId(),
|
||||
$newId,
|
||||
false,
|
||||
0,
|
||||
true
|
||||
);
|
||||
$de->showDiff( '', '' );
|
||||
|
|
|
|||
|
|
@ -845,7 +845,7 @@ class Article implements Page {
|
|||
$request = $this->getContext()->getRequest();
|
||||
$user = $this->getContext()->getUser();
|
||||
$diff = $request->getVal( 'diff' );
|
||||
$rcid = $request->getVal( 'rcid' );
|
||||
$rcid = $request->getInt( 'rcid' );
|
||||
$diffOnly = $request->getBool( 'diffonly', $user->getOption( 'diffonly' ) );
|
||||
$purge = $request->getRawVal( 'action' ) === 'purge';
|
||||
$unhide = $request->getInt( 'unhide' ) == 1;
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ class SpecialComparePages extends SpecialPage {
|
|||
$de = $contentHandler->createDifferenceEngine( $form->getContext(),
|
||||
$rev1,
|
||||
$rev2,
|
||||
null, // rcid
|
||||
0, // rcid
|
||||
( $data['Action'] == 'purge' ),
|
||||
( $data['Unhide'] == '1' )
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue