X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryBacklinksprop.php;h=022fd9b848cd5d32219028e17b6da3b04963e1ba;hb=e8f31f6255c3fdfbb1d7ff818be96e0333372e9e;hp=f04ac663ce9bcafbf8bf9b8f9a9eb01b82173982;hpb=1658759d42a5d802e29a71c3fd70ae127afd3e46;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index f04ac663ce..022fd9b848 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -286,6 +286,8 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { $res = $this->select( __METHOD__ ); if ( is_null( $resultPageSet ) ) { + $this->executeGenderCacheFromResultWrapper( $res, __METHOD__ ); + $count = 0; foreach ( $res as $row ) { if ( ++$count > $params['limit'] ) { @@ -334,6 +336,12 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { $this->setContinue( $row, $sortby ); break; } + + if ( $miser_ns !== null && !in_array( $row->page_namespace, $miser_ns ) ) { + // Miser mode namespace check + continue; + } + $titles[] = Title::makeTitle( $row->page_namespace, $row->page_title ); } $resultPageSet->populateFromTitles( $titles );