Fix handling of qplimit/qpoffset and cachedtimestamp in QueryPage api module
[lhc/web/wiklou.git] / includes / api / ApiQueryQueryPage.php
index c4b3a6f..41c9c48 100644 (file)
@@ -103,7 +103,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase {
                        return;
                }
 
-               $res = $qp->doQuery( $params['limit'] + 1, $params['offset'] );
+               $res = $qp->doQuery( $params['offset'], $params['limit'] + 1 );
                $count = 0;
                $titles = array();
                foreach ( $res as $row ) {