X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinker.php;h=f2e4ac4581e1f9d0eb308a82bca850ee32b96c37;hb=8e185ecb2b53217665ea53f63119a28b3f80ff56;hp=816271f483cc30f0b65c22e6b9fd902d23a3ac36;hpb=9b4fd6a6c054a8b012ea0d358478f3ee1c392469;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/Linker.php b/includes/Linker.php
index 816271f483..f2e4ac4581 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -1331,7 +1331,10 @@ class Linker {
$link = Linker::makeExternalLink(
WikiMap::getForeignURL(
$wikiId,
- $title->getPrefixedText(),
+ $title->getNamespace() === 0
+ ? $title->getDBkey()
+ : MWNamespace::getCanonicalName( $title->getNamespace() ) . ':'
+ . $title->getDBkey(),
$title->getFragment()
),
$text,
@@ -1561,7 +1564,7 @@ class Linker {
$title = wfMessage( 'toc' )->inLanguage( $lang )->escaped();
return '
'
- . '
' . $title . "
\n"
+ . '
' . $title . "
\n"
. $toc
. "\n
\n";
}
@@ -1882,7 +1885,6 @@ class Linker {
* @return string HTML output
*/
public static function formatHiddenCategories( $hiddencats ) {
-
$outText = '';
if ( count( $hiddencats ) > 0 ) {
# Construct the HTML
@@ -2094,9 +2096,6 @@ class Linker {
* @return array
*/
public static function tooltipAndAccesskeyAttribs( $name, array $msgParams = [] ) {
- # @todo FIXME: If Sanitizer::expandAttributes() treated "false" as "output
- # no attribute" instead of "output '' as value for attribute", this
- # would be three lines.
$attribs = [
'title' => self::titleAttrib( $name, 'withaccess', $msgParams ),
'accesskey' => self::accesskey( $name )
@@ -2118,9 +2117,6 @@ class Linker {
* @return null|string
*/
public static function tooltip( $name, $options = null ) {
- # @todo FIXME: If Sanitizer::expandAttributes() treated "false" as "output
- # no attribute" instead of "output '' as value for attribute", this
- # would be two lines.
$tooltip = self::titleAttrib( $name, $options );
if ( $tooltip === false ) {
return '';