Index: trunk/extensions/WikiSync/WikiSyncApi.php |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | |
138 | 138 | # return list of similar revisions |
139 | 139 | $count = 0; |
140 | | - while ( $row = $db->fetchObject( $dbres ) ) { |
| 140 | + foreach ( $dbres as $row ) { |
141 | 141 | if ( ++$count > $limit ) { |
142 | 142 | $this->setContinueEnumParameter( 'startid', intval( $row->rev_id ) ); |
143 | 143 | break; |
— | — | @@ -150,7 +150,6 @@ |
151 | 151 | } |
152 | 152 | # place result list items into attributes of <similarrev> xml tag |
153 | 153 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'similarrev' ); |
154 | | - $db->freeResult( $dbres ); |
155 | 154 | } |
156 | 155 | |
157 | 156 | private function extractRowInfo( $row ) { |
— | — | @@ -226,7 +225,7 @@ |
227 | 226 | } |
228 | 227 | |
229 | 228 | public function getVersion() { |
230 | | - return __CLASS__; |
| 229 | + return __CLASS__ . ': $Id$'; |
231 | 230 | } |
232 | 231 | } /* end of ApiFindSimilarRev class */ |
233 | 232 | |
— | — | @@ -322,7 +321,7 @@ |
323 | 322 | } else { |
324 | 323 | # revisions edit history mode |
325 | 324 | $count = 0; |
326 | | - while ( $row = $db->fetchObject( $dbres ) ) { |
| 325 | + foreach ( $dbres as $row ) { |
327 | 326 | if ( ++$count > $limit ) { |
328 | 327 | $this->setContinueEnumParameter( 'startid', intval( $row->rev_id ) ); |
329 | 328 | break; |
— | — | @@ -338,7 +337,6 @@ |
339 | 338 | $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'revision' ); |
340 | 339 | // $this->getResult()->setIndexedTagName( $resultData, 'page' ); |
341 | 340 | // $this->getResult()->addValue( null, $this->getModuleName(), $resultData ); |
342 | | - $db->freeResult( $dbres ); |
343 | 341 | } |
344 | 342 | } |
345 | 343 | |
— | — | @@ -436,7 +434,7 @@ |
437 | 435 | } |
438 | 436 | |
439 | 437 | public function getVersion() { |
440 | | - return __CLASS__; |
| 438 | + return __CLASS__ . ': $Id$'; |
441 | 439 | } |
442 | 440 | } /* end of ApiRevisionHistory class */ |
443 | 441 | |
— | — | @@ -599,7 +597,7 @@ |
600 | 598 | } |
601 | 599 | |
602 | 600 | public function getVersion() { |
603 | | - return __CLASS__; |
| 601 | + return __CLASS__ . ': $Id$'; |
604 | 602 | } |
605 | 603 | |
606 | 604 | } /* end of ApiGetFile class */ |
Property changes on: trunk/extensions/WikiSync/WikiSyncApi.php |
___________________________________________________________________ |
Added: svn:keywords |
607 | 605 | + Id |