From 0319924c58ae1a422c1628d6ded05b1e29aadf91 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 29 Jan 2010 00:51:08 +0000 Subject: [PATCH] Fix careless errors in r61442 and r61444. --- includes/api/ApiQueryAllmessages.php | 5 +++-- includes/api/ApiQueryRevisions.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryAllmessages.php b/includes/api/ApiQueryAllmessages.php index 5601e4ede7..604846c7c2 100644 --- a/includes/api/ApiQueryAllmessages.php +++ b/includes/api/ApiQueryAllmessages.php @@ -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 +} diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index bc1c53cc74..04713bc8d1 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -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).' ); } -- 2.20.1