X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryBacklinksprop.php;h=3810e90f139745d2dd3b73b80ca0d03fa0abc6f8;hb=507643bafe9b09ac3500cb1de617136110cdf55d;hp=17b51da432084ec534ca7945ff88e1cd2f95a9b0;hpb=fb7b3eebeb8de47eb42e8d6ccf204106a2d6d9e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 17b51da432..3810e90f13 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -164,22 +164,14 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { $this->dieContinueUsageIf( count( $cont ) != count( $sortby ) ); $where = ''; $i = count( $sortby ) - 1; - $cont_ns = 0; - $cont_title = ''; foreach ( array_reverse( $sortby, true ) as $field => $type ) { $v = $cont[$i]; switch ( $type ) { case 'ns': - $cont_ns = (int)$v; - /* fall through */ case 'int': $v = (int)$v; $this->dieContinueUsageIf( $v != $cont[$i] ); break; - - case 'title': - $cont_title = $v; - /* fall through */ default: $v = $db->addQuotes( $v ); break; @@ -321,7 +313,7 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { foreach ( $sortby as $field => $v ) { $cont[] = $row->$field; } - $this->setContinueEnumParameter( 'continue', join( '|', $cont ) ); + $this->setContinueEnumParameter( 'continue', implode( '|', $cont ) ); } public function getCacheMode( $params ) {