parent::__construct( $name );
}
- // inexpensive?
- /**
- * This query is indexed as of 1.5
- */
- function isExpensive() {
- return true;
- }
-
function isSyndicated() {
return false;
}
'fields' => array ( 'page_namespace AS namespace',
'page_title AS title',
'page_len AS value' ),
- 'conds' => array ( 'page_namespace' => MWNamespace::getContentNamespaces(),
+ 'conds' => array ( 'page_namespace' => NS_MAIN,
'page_is_redirect' => 0 ),
- 'options' => array ( 'USE INDEX' => 'page_len' )
+ 'options' => array ( 'USE INDEX' => 'page_redirect_namespace_len' )
);
}
}
function formatResult( $skin, $result ) {
- $dm = $this->getLang()->getDirMark();
+ $dm = $this->getLanguage()->getDirMark();
$title = Title::makeTitle( $result->namespace, $result->title );
if ( !$title ) {