From: Tim Starling Date: Fri, 29 Jan 2010 00:51:08 +0000 (+0000) Subject: Fix careless errors in r61442 and r61444. X-Git-Tag: 1.31.0-rc.0~38064 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=0319924c58ae1a422c1628d6ded05b1e29aadf91;p=lhc%2Fweb%2Fwiklou.git Fix careless errors in r61442 and r61444. --- 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).' ); }