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 "Corrected grammatical error."
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialAncientpages.php
diff --git
a/includes/specials/SpecialAncientpages.php
b/includes/specials/SpecialAncientpages.php
index
088b060
..
a32393e
100644
(file)
--- a/
includes/specials/SpecialAncientpages.php
+++ b/
includes/specials/SpecialAncientpages.php
@@
-45,12
+45,13
@@
class AncientPagesPage extends QueryPage {
public function getQueryInfo() {
$tables = [ 'page', 'revision' ];
$conds = [
public function getQueryInfo() {
$tables = [ 'page', 'revision' ];
$conds = [
- 'page_namespace' => MWNamespace::getContentNamespaces(),
+ 'page_namespace' =>
+ MediaWikiServices::getInstance()->getNamespaceInfo()->getContentNamespaces(),
'page_is_redirect' => 0
];
$joinConds = [
'revision' => [
'page_is_redirect' => 0
];
$joinConds = [
'revision' => [
- '
INNER
JOIN', [
+ 'JOIN', [
'page_latest = rev_id'
]
],
'page_latest = rev_id'
]
],
@@
-94,8
+95,8
@@
class AncientPagesPage extends QueryPage {
$linkRenderer = $this->getLinkRenderer();
$link = $linkRenderer->makeKnownLink(
$title,
$linkRenderer = $this->getLinkRenderer();
$link = $linkRenderer->makeKnownLink(
$title,
- MediaWikiServices::getInstance()->getContentLanguage()->
- convert(
$title->getPrefixedText(
) )
+
new HtmlArmor(
MediaWikiServices::getInstance()->getContentLanguage()->
+ convert(
htmlspecialchars( $title->getPrefixedText() )
) )
);
return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) );
);
return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) );