X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FnamespaceDupes.php;h=4a2b49ae9387c2b30ed0f5315657ebb4a0a79fbe;hb=598a250b71aee0ca14eb8661b139bb23cf8e5f40;hp=522871d9df1fc039e0bbd72d2e640ae95d6b477c;hpb=6ead43f2123fec255acccce6bf68f31b51196a55;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index 522871d9df..4a2b49ae93 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -24,10 +24,12 @@ * @ingroup Maintenance */ +require_once __DIR__ . '/Maintenance.php'; + use MediaWiki\Linker\LinkTarget; use MediaWiki\MediaWikiServices; - -require_once __DIR__ . '/Maintenance.php'; +use Wikimedia\Rdbms\ResultWrapper; +use Wikimedia\Rdbms\IMaintainableDatabase; /** * Maintenance script that checks for articles to fix after @@ -38,7 +40,7 @@ require_once __DIR__ . '/Maintenance.php'; class NamespaceConflictChecker extends Maintenance { /** - * @var Database + * @var IMaintainableDatabase */ protected $db; @@ -254,7 +256,6 @@ class NamespaceConflictChecker extends Maintenance { $ok = true; foreach ( $targets as $row ) { - // Find the new title and determine the action to take $newTitle = $this->getDestinationTitle( $ns, $name, @@ -571,7 +572,7 @@ class NamespaceConflictChecker extends Maintenance { /** * Merge page histories * - * @param integer $id The page_id + * @param stdClass $row Page row * @param Title $newTitle The new title * @return bool */