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 "Cleanup and expand Status tests"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUnwatchedpages.php
diff --git
a/includes/specials/SpecialUnwatchedpages.php
b/includes/specials/SpecialUnwatchedpages.php
index
e5a7941
..
954e3ff
100644
(file)
--- a/
includes/specials/SpecialUnwatchedpages.php
+++ b/
includes/specials/SpecialUnwatchedpages.php
@@
-35,34
+35,41
@@
class UnwatchedpagesPage extends QueryPage {
parent::__construct( $name, 'unwatchedpages' );
}
parent::__construct( $name, 'unwatchedpages' );
}
- function isExpensive() { return true; }
- function isSyndicated() { return false; }
+ function isExpensive() {
+ return true;
+ }
+
+ function isSyndicated() {
+ return false;
+ }
function getQueryInfo() {
function getQueryInfo() {
- return array
(
- 'tables' => array
( 'page', 'watchlist' ),
- 'fields' => array
( 'namespace' => 'page_namespace',
+ return array(
+ 'tables' => array( 'page', 'watchlist' ),
+ 'fields' => array( 'namespace' => 'page_namespace',
'title' => 'page_title',
'value' => 'page_namespace' ),
'title' => 'page_title',
'value' => 'page_namespace' ),
- 'conds' => array
( 'wl_title IS NULL',
+ 'conds' => array( 'wl_title IS NULL',
'page_is_redirect' => 0,
"page_namespace != '" . NS_MEDIAWIKI .
"'" ),
'page_is_redirect' => 0,
"page_namespace != '" . NS_MEDIAWIKI .
"'" ),
- 'join_conds' => array
( 'watchlist' => array
(
- 'LEFT JOIN', array
( 'wl_title = page_title',
+ 'join_conds' => array
( 'watchlist' => array
(
+ 'LEFT JOIN', array( 'wl_title = page_title',
'wl_namespace = page_namespace' ) ) )
);
}
'wl_namespace = page_namespace' ) ) )
);
}
- function sortDescending() { return false; }
+ function sortDescending() {
+ return false;
+ }
function getOrderFields() {
return array( 'page_namespace', 'page_title' );
}
/**
function getOrderFields() {
return array( 'page_namespace', 'page_title' );
}
/**
- * @param
$skin S
kin
- * @param
$result
+ * @param
Skin $s
kin
+ * @param
object $result Result row
* @return string
*/
function formatResult( $skin, $result ) {
* @return string
*/
function formatResult( $skin, $result ) {
@@
-87,4
+94,8
@@
class UnwatchedpagesPage extends QueryPage {
return $this->getLanguage()->specialList( $plink, $wlink );
}
return $this->getLanguage()->specialList( $plink, $wlink );
}
+
+ protected function getGroupName() {
+ return 'maintenance';
+ }
}
}