Fix handling of qplimit/qpoffset and cachedtimestamp in QueryPage api module
authorBrian Wolff <bawolff@users.mediawiki.org>
Thu, 29 Sep 2011 15:16:35 +0000 (15:16 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Thu, 29 Sep 2011 15:16:35 +0000 (15:16 +0000)
commitcb3a99fd8ac2f3f0ed9477e70b3aaf51e7a3430f
treee149f0c4d4b69f645b9c5bb0fa6d7494cf4c4fff
parent0a45e7dc7636baedbd062386217c663dd41f8417
Fix handling of qplimit/qpoffset and cachedtimestamp in QueryPage api module

Basically api was thinking qplimit was the offset, and qpoffset was the limit. Also remove an extra ! when checking for the cached timestamp which was stopping the display of cachedtimestamp property in the api output.

I'm going to tag this 1.18 since this module was introduced in 1.18, and I assume we'd want to fix the limit/offset parameter before the wrong behaviour gets released and people depend on it, etc.
includes/QueryPage.php
includes/api/ApiQueryQueryPage.php