X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMovePage.php;h=24178acdad4e4e5dc9bb2080efa0b63d819346f4;hb=c6a77faa7d5dbe763a51a5dd7e626dfc72351d0b;hp=db5750a1bed58ed3f9d23d9ba88aaae7a61f4679;hpb=9e81610fb132601c6c079f96334df568676a23ee;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MovePage.php b/includes/MovePage.php index db5750a1be..24178acdad 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -272,7 +272,8 @@ class MovePage { [ 'cl_from' => $pageid ], __METHOD__ ); - $type = MWNamespace::getCategoryLinkType( $this->newTitle->getNamespace() ); + $type = MediaWikiServices::getInstance()->getNamespaceInfo()-> + getCategoryLinkType( $this->newTitle->getNamespace() ); foreach ( $prefixes as $prefixRow ) { $prefix = $prefixRow->cl_sortkey_prefix; $catTo = $prefixRow->cl_to; @@ -427,8 +428,8 @@ class MovePage { * Can also be used to revert after a DB failure. * * @private - * @param Title Old location to move the file from. - * @param Title New location to move the file to. + * @param Title $oldTitle Old location to move the file from. + * @param Title $newTitle New location to move the file to. * @return Status */ private function moveFile( $oldTitle, $newTitle ) {