X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FLinker.php;h=f2e4ac4581e1f9d0eb308a82bca850ee32b96c37;hb=eaefbf99c8183f543c766272fc1a73480d28e004;hp=6942a399355afb99d101138dc1e4d1a83cf57176;hpb=999351249b1810385ea2818ec445f784b24b72af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Linker.php b/includes/Linker.php index 6942a39935..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, @@ -1882,7 +1885,6 @@ class Linker { * @return string HTML output */ public static function formatHiddenCategories( $hiddencats ) { - $outText = ''; if ( count( $hiddencats ) > 0 ) { # Construct the HTML