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
Split down patch-comment-table.sql
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialDeadendpages.php
diff --git
a/includes/specials/SpecialDeadendpages.php
b/includes/specials/SpecialDeadendpages.php
index
f13f231
..
2a967c5
100644
(file)
--- a/
includes/specials/SpecialDeadendpages.php
+++ b/
includes/specials/SpecialDeadendpages.php
@@
-21,6
+21,8
@@
* @ingroup SpecialPage
*/
* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* A special page that list pages that contain no link to other pages
*
/**
* A special page that list pages that contain no link to other pages
*
@@
-66,7
+68,8
@@
class DeadendPagesPage extends PageQueryPage {
],
'conds' => [
'pl_from IS NULL',
],
'conds' => [
'pl_from IS NULL',
- 'page_namespace' => MWNamespace::getContentNamespaces(),
+ 'page_namespace' => MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getContentNamespaces(),
'page_is_redirect' => 0
],
'join_conds' => [
'page_is_redirect' => 0
],
'join_conds' => [
@@
-81,7
+84,9
@@
class DeadendPagesPage extends PageQueryPage {
function getOrderFields() {
// For some crazy reason ordering by a constant
// causes a filesort
function getOrderFields() {
// For some crazy reason ordering by a constant
// causes a filesort
- if ( count( MWNamespace::getContentNamespaces() ) > 1 ) {
+ if ( count( MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getContentNamespaces() ) > 1
+ ) {
return [ 'page_namespace', 'page_title' ];
} else {
return [ 'page_title' ];
return [ 'page_namespace', 'page_title' ];
} else {
return [ 'page_title' ];