X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMovePage.php;h=59baae78e284846f1edf7aa96c0cff9abca89c71;hb=de64366f58f0af7a02a417833c8e0605e4140fab;hp=564c8f4d6ca591522cf9fe262ad63e15a2ef0a16;hpb=f9fbcfd93905d4a9909bead84d3cf4364f4e5254;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MovePage.php b/includes/MovePage.php index 564c8f4d6c..59baae78e2 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -83,7 +83,7 @@ class MovePage { * @param ServiceOptions|null $options * @param ILoadBalancer|null $loadBalancer * @param NamespaceInfo|null $nsInfo - * @param WatchedItemStore|null $watchedItems + * @param WatchedItemStoreInterface|null $watchedItems * @param PermissionManager|null $permMgr */ public function __construct( @@ -473,6 +473,7 @@ class MovePage { $mp = new MovePage( $oldSubpage, $newSubpage ); $method = $checkPermissions ? 'moveIfAllowed' : 'move'; + /** @var Status $status */ $status = $mp->$method( $user, $reason, $createRedirect, $changeTags ); if ( $status->isOK() ) { $status->setResult( true, $newSubpage->getPrefixedText() ); @@ -508,7 +509,7 @@ class MovePage { Hooks::run( 'TitleMoveStarting', [ $this->oldTitle, $this->newTitle, $user ] ); - $pageid = $this->oldTitle->getArticleID( Title::GAID_FOR_UPDATE ); + $pageid = $this->oldTitle->getArticleID( Title::READ_LATEST ); $protected = $this->oldTitle->isProtected(); // Do the actual move; if this fails, it will throw an MWException(!)