Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | } |
425 | 425 | |
426 | 426 | public function getCachedTimestamp() { |
427 | | - if ( !is_null( $this->cachedTimestamp ) ) { |
| 427 | + if ( is_null( $this->cachedTimestamp ) ) { |
428 | 428 | $dbr = wfGetDB( DB_SLAVE ); |
429 | 429 | $fname = get_class( $this ) . '::getCachedTimestamp'; |
430 | 430 | $this->cachedTimestamp = $dbr->selectField( 'querycache_info', 'qci_timestamp', |
Index: trunk/phase3/includes/api/ApiQueryQueryPage.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | return; |
105 | 105 | } |
106 | 106 | |
107 | | - $res = $qp->doQuery( $params['limit'] + 1, $params['offset'] ); |
| 107 | + $res = $qp->doQuery( $params['offset'], $params['limit'] + 1 ); |
108 | 108 | $count = 0; |
109 | 109 | $titles = array(); |
110 | 110 | foreach ( $res as $row ) { |