r88052 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88051‎ | r88052 | r88053 >
Date:12:14, 14 May 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix up last errors from r88047
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryLangBacklinks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryLangBacklinks.php
@@ -86,7 +86,7 @@
8787 $this->addWhere( 'll_from = page_id' );
8888
8989 $this->addFields( array( 'page_id', 'page_title', 'page_namespace', 'page_is_redirect',
90 - 'll_from', 'iwl_lang', 'll_title' ) );
 90+ 'll_from', 'll_lang', 'll_title' ) );
9191
9292 if ( isset( $params['lang'] ) ) {
9393 $this->addWhereFld( 'll_lang', $params['lang'] );
@@ -129,11 +129,11 @@
130130 }
131131
132132 if ( $lllang ) {
133 - $entry['iwprefix'] = $row->ll_lang;
 133+ $entry['lllang'] = $row->ll_lang;
134134 }
135135
136136 if ( $lltitle ) {
137 - $entry['iwtitle'] = $row->ll_title;
 137+ $entry['lltitle'] = $row->ll_title;
138138 }
139139
140140 $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $entry );
@@ -209,8 +209,8 @@
210210
211211 protected function getExamples() {
212212 return array(
213 - 'api.php?action=query&list=llbacklinks&lbltitle=Test&lbllang=fr',
214 - 'api.php?action=query&generator=llbacklinks&glbltitle=Test&lbllang=fr&prop=info'
 213+ 'api.php?action=query&list=langbacklinks&lbltitle=Test&lbllang=fr',
 214+ 'api.php?action=query&generator=langbacklinks&glbltitle=Test&lbllang=fr&prop=info'
215215 );
216216 }
217217

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r88047* (bug 28963) add langbacklinks module to api...reedy11:29, 14 May 2011

Status & tagging log