X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialShortpages.php;h=c176f9136469380a3b521d6c473bdbdea4e63125;hb=eac38f23a305244db9787ccedd2d3a1007330592;hp=eee036fd8970860bfe26bb8419ab2ce428b2022e;hpb=79935a9ce2e7673f557cbae3076527c2ecfdfce9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index eee036fd89..c176f91364 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -33,14 +33,6 @@ class ShortPagesPage extends QueryPage { parent::__construct( $name ); } - // inexpensive? - /** - * This query is indexed as of 1.5 - */ - function isExpensive() { - return true; - } - function isSyndicated() { return false; } @@ -51,9 +43,9 @@ class ShortPagesPage extends QueryPage { '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' ) ); } @@ -86,7 +78,7 @@ class ShortPagesPage extends QueryPage { } function formatResult( $skin, $result ) { - $dm = $this->getLang()->getDirMark(); + $dm = $this->getLanguage()->getDirMark(); $title = Title::makeTitle( $result->namespace, $result->title ); if ( !$title ) {