Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php |
— | — | @@ -93,9 +93,7 @@ |
94 | 94 | |
95 | 95 | $this->addTables( array( 'page', 'categorylinks' ) ); // must be in this order for 'USE INDEX' |
96 | 96 | |
97 | | - $this->setContinuation( $params['continue'], $params['dir'] ); |
98 | 97 | $this->addWhereFld( 'cl_to', $categoryTitle->getDBkey() ); |
99 | | - |
100 | 98 | $this->addWhereFld( 'cl_type', $params['type'] ); |
101 | 99 | |
102 | 100 | // Scanning large datasets for rare categories sucks, and I already told |
— | — | @@ -129,6 +127,8 @@ |
130 | 128 | |
131 | 129 | $this->addWhere( 'cl_from=page_id' ); |
132 | 130 | |
| 131 | + $this->setContinuation( $params['continue'], $params['dir'] ); |
| 132 | + |
133 | 133 | $limit = $params['limit']; |
134 | 134 | $this->addOption( 'LIMIT', $limit + 1 ); |
135 | 135 | |