X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fskins%2FSkin.php;h=b05fb0bcd9e0f172cba3ae6293b841110bbc01cf;hb=33afb7440a03df8d1878c94d2f3d3b9fdd1a848b;hp=43b3ec1cad25b76ddf20ab62ebddb0ff7bf0cab3;hpb=5cd37c7a64e9abb4fdadb9c3ae10c672bdc40c11;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php
index 43b3ec1cad..b05fb0bcd9 100644
--- a/includes/skins/Skin.php
+++ b/includes/skins/Skin.php
@@ -533,7 +533,7 @@ abstract class Skin extends ContextSource {
$t = $embed . implode( "{$pop}{$embed}", $allCats['normal'] ) . $pop;
$msg = $this->msg( 'pagecategories' )->numParams( count( $allCats['normal'] ) )->escaped();
- $linkPage = wfMessage( 'pagecategorieslink' )->inContentLanguage()->text();
+ $linkPage = $this->msg( 'pagecategorieslink' )->inContentLanguage()->text();
$title = Title::newFromText( $linkPage );
$link = $title ? Linker::link( $title, $msg ) : $msg;
$s .= '
' .
@@ -1331,7 +1331,7 @@ abstract class Skin extends ContextSource {
* @param string $message
*/
public function addToSidebar( &$bar, $message ) {
- $this->addToSidebarPlain( $bar, wfMessage( $message )->inContentLanguage()->plain() );
+ $this->addToSidebarPlain( $bar, $this->msg( $message )->inContentLanguage()->plain() );
}
/**
@@ -1472,7 +1472,7 @@ abstract class Skin extends ContextSource {
$uTalkTitle,
$this->msg( 'newmessageslinkplural' )->params( $plural )->escaped(),
[],
- [ 'redirect' => 'no' ]
+ $uTalkTitle->isRedirect() ? [ 'redirect' => 'no' ] : []
);
$newMessagesDiffLink = Linker::linkKnown(
@@ -1621,13 +1621,13 @@ abstract class Skin extends ContextSource {
$attribs = [];
if ( !is_null( $tooltip ) ) {
- $attribs['title'] = wfMessage( 'editsectionhint' )->rawParams( $tooltip )
+ $attribs['title'] = $this->msg( 'editsectionhint' )->rawParams( $tooltip )
->inLanguage( $lang )->text();
}
$links = [
'editsection' => [
- 'text' => wfMessage( 'editsection' )->inLanguage( $lang )->escaped(),
+ 'text' => $this->msg( 'editsection' )->inLanguage( $lang )->escaped(),
'targetTitle' => $nt,
'attribs' => $attribs,
'query' => [ 'action' => 'edit', 'section' => $section ],
@@ -1652,7 +1652,7 @@ abstract class Skin extends ContextSource {
$result .= implode(
''
- . wfMessage( 'pipe-separator' )->inLanguage( $lang )->escaped()
+ . $this->msg( 'pipe-separator' )->inLanguage( $lang )->escaped()
. '',
$linksHtml
);