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
registration: Use the correct key for skin dependencies
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialWhatlinkshere.php
diff --git
a/includes/specials/SpecialWhatlinkshere.php
b/includes/specials/SpecialWhatlinkshere.php
index
5677ac8
..
1d3ffd7
100644
(file)
--- a/
includes/specials/SpecialWhatlinkshere.php
+++ b/
includes/specials/SpecialWhatlinkshere.php
@@
-208,15
+208,18
@@
class SpecialWhatLinksHere extends IncludableSpecialPage {
if ( $hidelinks || $hidetrans || $hideredirs || $hideimages ) {
$out->addHTML( $this->getFilterPanel() );
}
if ( $hidelinks || $hidetrans || $hideredirs || $hideimages ) {
$out->addHTML( $this->getFilterPanel() );
}
- $msgKey = is_int( $namespace ) ? 'nolinkshere-ns
-2' : 'nolinkshere-2
';
- $link = $this->getLinkRenderer()->make
Known
Link(
+ $msgKey = is_int( $namespace ) ? 'nolinkshere-ns
' : 'nolinkshere
';
+ $link = $this->getLinkRenderer()->makeLink(
$this->target,
null,
[],
$this->target->isRedirect() ? [ 'redirect' => 'no' ] : []
);
$this->target,
null,
[],
$this->target->isRedirect() ? [ 'redirect' => 'no' ] : []
);
- $errMsg = $this->msg( $msgKey )->rawParams( $link )->parseAsBlock();
+ $errMsg = $this->msg( $msgKey )
+ ->params( $this->target->getPrefixedText() )
+ ->rawParams( $link )
+ ->parseAsBlock();
$out->addHTML( $errMsg );
$out->setStatusCode( 404 );
}
$out->addHTML( $errMsg );
$out->setStatusCode( 404 );
}
@@
-282,14
+285,17
@@
class SpecialWhatLinksHere extends IncludableSpecialPage {
$out->addHTML( $this->whatlinkshereForm() );
$out->addHTML( $this->getFilterPanel() );
$out->addHTML( $this->whatlinkshereForm() );
$out->addHTML( $this->getFilterPanel() );
- $link = $this->getLinkRenderer()->make
Known
Link(
+ $link = $this->getLinkRenderer()->makeLink(
$this->target,
null,
[],
$this->target->isRedirect() ? [ 'redirect' => 'no' ] : []
);
$this->target,
null,
[],
$this->target->isRedirect() ? [ 'redirect' => 'no' ] : []
);
- $msg = $this->msg( 'linkshere-2' )->rawParams( $link )->parseAsBlock();
+ $msg = $this->msg( 'linkshere' )
+ ->params( $this->target->getPrefixedText() )
+ ->rawParams( $link )
+ ->parseAsBlock();
$out->addHTML( $msg );
$prevnext = $this->getPrevNext( $prevId, $nextId );
$out->addHTML( $msg );
$prevnext = $this->getPrevNext( $prevId, $nextId );
@@
-517,7
+523,7
@@
class SpecialWhatLinksHere extends IncludableSpecialPage {
]
);
]
);
- $f .=
' '
.
+ $f .=
"\u{00A0}"
.
Xml::checkLabel(
$this->msg( 'invert' )->text(),
'invert',
Xml::checkLabel(
$this->msg( 'invert' )->text(),
'invert',