X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangBacklinks.php;h=e6280c853a547a22e133d537dc2b516e9cb2b10a;hb=b5993f884a3c4b0012fca120d3625452408c159d;hp=652fa1122f659467c56dd78a1f7f270447786b99;hpb=8f5ca0faaaaf669106b5f996ee87ebfa5af4844a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 652fa1122f..e6280c853a 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -112,9 +112,13 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { $result = $this->getResult(); foreach ( $res as $row ) { if ( ++$count > $params['limit'] ) { - // We've reached the one extra which shows that there are additional pages to be had. Stop here... - // Continue string preserved in case the redirect query doesn't pass the limit - $this->setContinueEnumParameter( 'continue', "{$row->ll_lang}|{$row->ll_title}|{$row->ll_from}" ); + // We've reached the one extra which shows that there are + // additional pages to be had. Stop here... Continue string + // preserved in case the redirect query doesn't pass the limit. + $this->setContinueEnumParameter( + 'continue', + "{$row->ll_lang}|{$row->ll_title}|{$row->ll_from}" + ); break; } @@ -140,7 +144,10 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $entry ); if ( !$fit ) { - $this->setContinueEnumParameter( 'continue', "{$row->ll_lang}|{$row->ll_title}|{$row->ll_from}" ); + $this->setContinueEnumParameter( + 'continue', + "{$row->ll_lang}|{$row->ll_title}|{$row->ll_from}" + ); break; } }