X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryBacklinksprop.php;h=f1a2271c1284383d158b457bf974a833f4129a40;hb=2aac43987146c324479d45d677b0a7cb84947fb3;hp=a50d58b22f2d4700dcbef907c778a3c8be11d044;hpb=cec421ac9d23527413d49b7567c24e414d0b277a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index a50d58b22f..f1a2271c12 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -143,8 +143,12 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { } $miser_ns = null; if ( $params['namespace'] !== null ) { - if ( empty( $settings['from_namespace'] ) && $this->getConfig()->get( 'MiserMode' ) ) { - $miser_ns = $params['namespace']; + if ( empty( $settings['from_namespace'] ) ) { + if ( $this->getConfig()->get( 'MiserMode' ) ) { + $miser_ns = $params['namespace']; + } else { + $this->addWhereFld( 'page_namespace', $params['namespace'] ); + } } else { $this->addWhereFld( "{$p}_from_namespace", $params['namespace'] ); if ( !empty( $settings['from_namespace'] ) && count( $params['namespace'] ) > 1 ) {