Fix careless errors in r61442 and r61444.
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 29 Jan 2010 00:51:08 +0000 (00:51 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 29 Jan 2010 00:51:08 +0000 (00:51 +0000)
includes/api/ApiQueryAllmessages.php
includes/api/ApiQueryRevisions.php

index 5601e4e..604846c 100644 (file)
@@ -77,9 +77,10 @@ class ApiQueryAllmessages extends ApiQueryBase {
                $result = $this->getResult();
                foreach ( $messages_target as $message ) {
                        // Skip all messages up to $params['from']
-                       if ( $skip && $message === $params['from'] ) {
+                       if ( $skip && $message === $params['from'] )
                                $skip = false;
 
+                       if ( !$skip ) {
                                $a = array( 'name' => $message );
                                $msg = wfMsgGetKey( $message, true, false, false );
                                if ( wfEmptyMsg( $message, $msg ) )
@@ -148,4 +149,4 @@ class ApiQueryAllmessages extends ApiQueryBase {
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
-}
\ No newline at end of file
+}
index bc1c53c..04713bc 100644 (file)
@@ -541,7 +541,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                        ' 1) Get data about a set of pages (last revision), by setting titles or pageids parameter.',
                        ' 2) Get revisions for one given page, by using titles/pageids with start/end/limit params.',
                        ' 3) Get data about a set of revisions by setting their IDs with revids parameter.',
-                       'All parameters marked as (enum) may only be used with a single page (//2).'
+                       'All parameters marked as (enum) may only be used with a single page (#2).'
                );
        }