- if($params['sort'] == 'timestamp')
- $this->addOption('USE INDEX', 'cl_timestamp');
- else
- $this->addOption('USE INDEX', 'cl_sortkey');
-
- $this->addWhere('cl_from=page_id');
- $this->setContinuation($params['continue'], $params['dir']);
- $this->addWhereFld('cl_to', $categoryTitle->getDBkey());
- # Scanning large datasets for rare categories sucks, and I already told
- # how to have efficient subcategory access :-) ~~~~ (oh well, domas)
+ if ( $params['sort'] == 'timestamp' ) {
+ $this->addOption( 'USE INDEX', 'cl_timestamp' );
+ } else {
+ $this->addOption( 'USE INDEX', 'cl_sortkey' );
+ }
+
+ $this->addWhere( 'cl_from=page_id' );
+ $this->setContinuation( $params['continue'], $params['dir'] );
+ $this->addWhereFld( 'cl_to', $categoryTitle->getDBkey() );
+ // Scanning large datasets for rare categories sucks, and I already told
+ // how to have efficient subcategory access :-) ~~~~ (oh well, domas)