X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllLinks.php;h=bccc25fbfb9c7421cace8a7ff7fca931119cbf80;hb=3afc76a4b5ad2f73dd69a82ec08c0d0e4799f00f;hp=5be304d34c6389da9e3bca6925f139ddaa81b9e0;hpb=841f064b2ceb4c69bc42c0b86e9477f532513865;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index 5be304d34c..bccc25fbfb 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -149,15 +149,14 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { // 'continue' always overrides 'from' $from = ( $continue || $params['from'] === null ? null : - $this->titlePartToKey( $params['from'], $params['namespace'] ) ); + $this->titlePartToKey( $params['from'], $namespace ) ); $to = ( $params['to'] === null ? null : - $this->titlePartToKey( $params['to'], $params['namespace'] ) ); + $this->titlePartToKey( $params['to'], $namespace ) ); $this->addWhereRange( $pfx . $fieldTitle, 'newer', $from, $to ); - if ( isset( $params['prefix'] ) ) { $this->addWhere( $pfx . $fieldTitle . $db->buildLike( $this->titlePartToKey( - $params['prefix'], $params['namespace'] ), $db->anyString() ) ); + $params['prefix'], $namespace ), $db->anyString() ) ); } $this->addFields( array( 'pl_title' => $pfx . $fieldTitle ) );