X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FRollbackAction.php;h=617f1c99981d8a49a552fa3c90cd4914459d3300;hb=437a7ddf85d38683f82cfd43b5c5658459032d7d;hp=d48a0ea227dff82710562f5ea4716b2c9cd8d1e7;hpb=754334f92a637190b7d6786413319f6e687779f0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/RollbackAction.php b/includes/actions/RollbackAction.php index d48a0ea227..617f1c9998 100644 --- a/includes/actions/RollbackAction.php +++ b/includes/actions/RollbackAction.php @@ -62,6 +62,7 @@ class RollbackAction extends FormlessAction { $this->getOutput()->addWikiMsgArray( $errMsg, $errArray ); if ( isset( $details['current'] ) ) { + /** @var Revision $current */ $current = $details['current']; if ( $current->getComment() != '' ) { @@ -85,6 +86,7 @@ class RollbackAction extends FormlessAction { throw new ErrorPageError( 'rollbackfailed', $error[0], array_slice( $error, 1 ) ); } + /** @var Revision $current */ $current = $details['current']; $target = $details['target']; $newId = $details['newid'];