X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FRightsLogFormatter.php;h=1fd4b7f36412218e237c61790d23e20188db944f;hb=c6df967e03a09d5c81473e80fe808e2ebb53ec55;hp=b9dfb6c04436542dfacbfe2121ef96eb2b446dd2;hpb=f51f5614a3217da6555a97261211a724f78d69ef;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/RightsLogFormatter.php b/includes/logging/RightsLogFormatter.php index b9dfb6c044..1fd4b7f364 100644 --- a/includes/logging/RightsLogFormatter.php +++ b/includes/logging/RightsLogFormatter.php @@ -33,12 +33,19 @@ class RightsLogFormatter extends LogFormatter { global $wgContLang, $wgUserrightsInterwikiDelimiter; if ( !$this->plaintext ) { - $text = $wgContLang->ucfirst( $title->getText() ); + $text = $wgContLang->ucfirst( $title->getDBkey() ); $parts = explode( $wgUserrightsInterwikiDelimiter, $text, 2 ); if ( count( $parts ) === 2 ) { - $titleLink = WikiMap::foreignUserLink( $parts[1], $parts[0], - htmlspecialchars( $title->getText() ) ); + $titleLink = WikiMap::foreignUserLink( + $parts[1], + $parts[0], + htmlspecialchars( + strtr( $parts[0], '_', ' ' ) . + $wgUserrightsInterwikiDelimiter . + $parts[1] + ) + ); if ( $titleLink !== false ) { return $titleLink;