dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r92975 caused wikitable in MediaWiki:Recentchangestext (eg. enwiki)
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialShortpages.php
diff --git
a/includes/specials/SpecialShortpages.php
b/includes/specials/SpecialShortpages.php
index
eee036f
..
c176f91
100644
(file)
--- a/
includes/specials/SpecialShortpages.php
+++ b/
includes/specials/SpecialShortpages.php
@@
-33,14
+33,6
@@
class ShortPagesPage extends QueryPage {
parent::__construct( $name );
}
parent::__construct( $name );
}
- // inexpensive?
- /**
- * This query is indexed as of 1.5
- */
- function isExpensive() {
- return true;
- }
-
function isSyndicated() {
return false;
}
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' ),
'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 ),
'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 ) {
}
function formatResult( $skin, $result ) {
- $dm = $this->getLang()->getDirMark();
+ $dm = $this->getLang
uage
()->getDirMark();
$title = Title::makeTitle( $result->namespace, $result->title );
if ( !$title ) {
$title = Title::makeTitle( $result->namespace, $result->title );
if ( !$title ) {