Index: trunk/extensions/CodeReview/api/ApiQueryCodeRevisions.php |
— | — | @@ -98,6 +98,12 @@ |
99 | 99 | $result->addValue( 'query', $this->getModuleName(), $data ); |
100 | 100 | } |
101 | 101 | |
| 102 | + /** |
| 103 | + * @param $row |
| 104 | + * @param $repo CodeRepository |
| 105 | + * @param $result ApiResult |
| 106 | + * @return array |
| 107 | + */ |
102 | 108 | private function formatRow( $row, $repo, $result ) { |
103 | 109 | $item = array(); |
104 | 110 | if ( isset( $this->props['revid'] ) ) { |
— | — | @@ -124,7 +130,7 @@ |
125 | 131 | if ( isset( $this->props['tags'] ) ) { |
126 | 132 | $rev = CodeRevision::newFromRow( $repo, $row ); |
127 | 133 | $item['tags'] = $rev->getTags( ); |
128 | | - $result->setIndexedTagName( $item, 'tags' ); |
| 134 | + $result->setIndexedTagName( $item['tags'], 'tags' ); |
129 | 135 | } |
130 | 136 | return $item; |
131 | 137 | } |