45 if ( $pageIdentity ===
null ) {
46 # Invalid or non-importable title
47 $r[
'title'] = $pageInfo[
'title'];
50 $titleFactory = MediaWikiServices::getInstance()->getTitleFactory();
52 ApiQueryBase::addTitleInfo( $r, $titleFactory->castFromPageIdentity( $pageIdentity ) );
53 $r[
'revisions'] = (int)$successCount;
56 $this->mResultArr[] = $r;
59 parent::reportPage( $pageIdentity, $foreignTitle, $revisionCount, $successCount, $pageInfo );