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 "Rename autonym for 'no' from 'norsk bokmål' to 'norsk'"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialShortpages.php
diff --git
a/includes/specials/SpecialShortpages.php
b/includes/specials/SpecialShortpages.php
index
f980e71
..
e9c15e7
100644
(file)
--- a/
includes/specials/SpecialShortpages.php
+++ b/
includes/specials/SpecialShortpages.php
@@
-41,9
+41,11
@@
class ShortPagesPage extends QueryPage {
}
public function getQueryInfo() {
}
public function getQueryInfo() {
+ $config = $this->getConfig();
+ $blacklist = $config->get( 'ShortPagesNamespaceBlacklist' );
$tables = [ 'page' ];
$conds = [
$tables = [ 'page' ];
$conds = [
- 'page_namespace' =>
MWNamespace::getContentNamespaces(
),
+ 'page_namespace' =>
array_diff( MWNamespace::getContentNamespaces(), $blacklist
),
'page_is_redirect' => 0
];
$joinConds = [];
'page_is_redirect' => 0
];
$joinConds = [];