diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2013-11-14 13:56:06 +0100 |
---|---|---|
committer | Chad <chadh@wikimedia.org> | 2013-11-14 18:25:45 +0000 |
commit | 789c20044b3a26251626ac77d6dbdf39d4f8b974 (patch) | |
tree | 6ff74e1da0956d97c807f610dacc80e1a9787bf1 /includes/api/ApiQueryRandom.php | |
parent | d45bb99e8c41bbb973be1f75918ced000e0891ac (diff) | |
download | mediawikicore-789c20044b3a26251626ac77d6dbdf39d4f8b974.tar.gz mediawikicore-789c20044b3a26251626ac77d6dbdf39d4f8b974.zip |
Update formatting, return of the API classes
Change-Id: I8c3a5b4396a1c3bba22f676137f640c6aa3c8960
Diffstat (limited to 'includes/api/ApiQueryRandom.php')
-rw-r--r-- | includes/api/ApiQueryRandom.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index fae33772f2db..b1f5ab93c73b 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -83,8 +83,8 @@ class ApiQueryRandom extends ApiQueryGeneratorBase { // Prevent duplicates if ( !in_array( $row->page_id, $this->pageIDs ) ) { $fit = $this->getResult()->addValue( - array( 'query', $this->getModuleName() ), - null, $this->extractRowInfo( $row ) ); + array( 'query', $this->getModuleName() ), + null, $this->extractRowInfo( $row ) ); if ( !$fit ) { // We can't really query-continue a random list. // Return an insanely high value so @@ -131,6 +131,7 @@ class ApiQueryRandom extends ApiQueryGeneratorBase { $vals = array(); $vals['id'] = intval( $row->page_id ); ApiQueryBase::addTitleInfo( $vals, $title ); + return $vals; } |