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
Merge "Exclude override to make method public from checks"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialShortpages.php
diff --git
a/includes/specials/SpecialShortpages.php
b/includes/specials/SpecialShortpages.php
index
5a4e8f0
..
9b50875
100644
(file)
--- a/
includes/specials/SpecialShortpages.php
+++ b/
includes/specials/SpecialShortpages.php
@@
-38,15
+38,15
@@
class ShortPagesPage extends QueryPage {
}
function getQueryInfo() {
}
function getQueryInfo() {
- return array
(
- 'tables' => array
( 'page' ),
- 'fields' => array
( 'namespace' => 'page_namespace',
+ return array(
+ 'tables' => array( 'page' ),
+ 'fields' => array( 'namespace' => 'page_namespace',
'title' => 'page_title',
'value' => 'page_len' ),
'title' => 'page_title',
'value' => 'page_len' ),
- 'conds' => array
( 'page_namespace' =>
+ 'conds' => array( 'page_namespace' =>
MWNamespace::getContentNamespaces(),
'page_is_redirect' => 0 ),
MWNamespace::getContentNamespaces(),
'page_is_redirect' => 0 ),
- 'options' => array
( 'USE INDEX' => 'page_redirect_namespace_len' )
+ 'options' => array( 'USE INDEX' => 'page_redirect_namespace_len' )
);
}
);
}
@@
-56,8
+56,7
@@
class ShortPagesPage extends QueryPage {
/**
* @param $db DatabaseBase
/**
* @param $db DatabaseBase
- * @param $res
- * @return void
+ * @param ResultWrapper $res
*/
function preprocessResults( $db, $res ) {
# There's no point doing a batch check if we aren't caching results;
*/
function preprocessResults( $db, $res ) {
# There's no point doing a batch check if we aren't caching results;
@@
-79,6
+78,11
@@
class ShortPagesPage extends QueryPage {
return false;
}
return false;
}
+ /**
+ * @param Skin $skin
+ * @param object $result Result row
+ * @return string
+ */
function formatResult( $skin, $result ) {
$dm = $this->getLanguage()->getDirMark();
function formatResult( $skin, $result ) {
$dm = $this->getLanguage()->getDirMark();
@@
-110,4
+114,8
@@
class ShortPagesPage extends QueryPage {
? "${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]"
: "<del>${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]</del>";
}
? "${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]"
: "<del>${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]</del>";
}
+
+ protected function getGroupName() {
+ return 'maintenance';
+ }
}
}