X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FLinker.php;h=bed9957f00cbe8871fd897ac400056ac88a9ce8c;hb=0be08c438f92095fbdcb45b870615c4e7eef4e01;hp=05e3abbfd8dfe91077e7614863dc00ce071ab194;hpb=6cdcc7416c64a635df9aa15170d2df13ecbbd82d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Linker.php b/includes/Linker.php index 05e3abbfd8..bed9957f00 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -164,10 +164,10 @@ class Linker { } /** - * Make appropriate markup for a link to the current article. This is - * currently rendered as the bold link text. The calling sequence is the - * same as the other make*LinkObj static functions, despite $query not - * being used. + * Make appropriate markup for a link to the current article. This is since + * MediaWiki 1.29.0 rendered as an tag without an href and with a class + * showing the link text. The calling sequence is the same as for the other + * make*LinkObj static functions, but $query is not used. * * @since 1.16.3 * @param Title $nt @@ -179,7 +179,7 @@ class Linker { * @return string */ public static function makeSelfLinkObj( $nt, $html = '', $query = '', $trail = '', $prefix = '' ) { - $ret = "{$prefix}{$html}{$trail}"; + $ret = "{$prefix}{$html}{$trail}"; if ( !Hooks::run( 'SelfLinkBegin', [ $nt, &$html, &$trail, &$prefix, &$ret ] ) ) { return $ret; } @@ -188,7 +188,7 @@ class Linker { $html = htmlspecialchars( $nt->getPrefixedText() ); } list( $inside, $trail ) = self::splitTrail( $trail ); - return "{$prefix}{$html}{$inside}{$trail}"; + return "{$prefix}{$html}{$inside}{$trail}"; } /** @@ -590,7 +590,7 @@ class Linker { # ThumbnailImage::toHtml() already adds page= onto the end of DjVu URLs # So we don't need to pass it here in $query. However, the URL for the - # zoom icon still needs it, so we make a unique query for it. See bug 14771 + # zoom icon still needs it, so we make a unique query for it. See T16771 $url = $title->getLocalURL( $query ); if ( $page ) { $url = wfAppendQuery( $url, [ 'page' => $page ] ); @@ -892,7 +892,7 @@ class Linker { if ( $altUserName === false ) { $altUserName = IP::prettifyIP( $userName ); } - $classes .= ' mw-anonuserlink'; // Separate link class for anons (bug 43179) + $classes .= ' mw-anonuserlink'; // Separate link class for anons (T45179) } else { $page = Title::makeTitle( NS_USER, $userName ); } @@ -1096,7 +1096,7 @@ class Linker { ) { # Sanitize text a bit: $comment = str_replace( "\n", " ", $comment ); - # Allow HTML entities (for bug 13815) + # Allow HTML entities (for T15815) $comment = Sanitizer::escapeHtmlAllowEntities( $comment ); # Render autocomments and make links: @@ -1165,7 +1165,7 @@ class Linker { $section = str_replace( '[[', '', $section ); $section = str_replace( ']]', '', $section ); - $section = Sanitizer::normalizeSectionNameWhitespace( $section ); # bug 22784 + $section = Sanitizer::normalizeSectionNameWhitespace( $section ); # T24784 if ( $local ) { $sectionTitle = Title::newFromText( '#' . $section ); } else { @@ -1374,7 +1374,7 @@ class Linker { } else { $suffix = ''; } - # bug 7425 + # T9425 $target = trim( $target ); # Look at the first character if ( $target != '' && $target[0] === '/' ) { @@ -1561,7 +1561,7 @@ class Linker { $title = wfMessage( 'toc' )->inLanguage( $lang )->escaped(); return '
' - . '

' . $title . "

\n" + . '

' . $title . "

\n" . $toc . "\n
\n"; } @@ -1797,7 +1797,7 @@ class Linker { if ( $context->getRequest()->getBool( 'bot' ) ) { $query['bot'] = '1'; - $query['hidediff'] = '1'; // bug 15999 + $query['hidediff'] = '1'; // T17999 } $disableRollbackEditCount = false;