X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLangBacklinks.php;h=9f77b84a4710b3312a82f16d77ae78561cf8f4c5;hp=a3a285b093c37e30d61ab5416058476d224890a3;hb=59ebff658ce912c1b0e7ef8d8f9bfec5a4e17b39;hpb=ac75aedc20f5a86fb0e19386c0dcd10ec514af6a diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index a3a285b093..9f77b84a47 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -131,7 +131,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { ApiQueryBase::addTitleInfo( $entry, $title ); if ( $row->page_is_redirect ) { - $entry['redirect'] = ''; + $entry['redirect'] = true; } if ( $lllang ) { @@ -154,7 +154,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { } if ( is_null( $resultPageSet ) ) { - $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'll' ); + $result->addIndexedTagName( array( 'query', $this->getModuleName() ), 'll' ); } else { $resultPageSet->populateFromTitles( $pages ); } @@ -185,6 +185,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { 'lllang', 'lltitle', ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'dir' => array( ApiBase::PARAM_DFLT => 'ascending', @@ -196,7 +197,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=langbacklinks&lbltitle=Test&lbllang=fr' => 'apihelp-query+langbacklinks-example-simple',