X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinker.php;h=f160fd67fa759f105ef374ff2272cf6e4341c45a;hb=c496aad824b5079c11696afa3795d7b1fbfb7587;hp=b50ccfcbf3aa9e3aa25c09bf01aa8b0e5a2cde41;hpb=088c6db48b8e2997cd496f131fa3bc789dba3da0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Linker.php b/includes/Linker.php index b50ccfcbf3..f160fd67fa 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -38,29 +38,6 @@ class Linker { const TOOL_LINKS_NOBLOCK = 1; const TOOL_LINKS_EMAIL = 2; - /** - * Return the CSS colour of a known link - * - * @deprecated since 1.28, use LinkRenderer::getLinkClasses() instead - * - * @since 1.16.3 - * @param LinkTarget $t - * @param int $threshold User defined threshold - * @return string CSS class - */ - public static function getLinkColour( LinkTarget $t, $threshold ) { - wfDeprecated( __METHOD__, '1.28' ); - $services = MediaWikiServices::getInstance(); - $linkRenderer = $services->getLinkRenderer(); - if ( $threshold !== $linkRenderer->getStubThreshold() ) { - // Need to create a new instance with the right stub threshold... - $linkRenderer = $services->getLinkRendererFactory()->create(); - $linkRenderer->setStubThreshold( $threshold ); - } - - return $linkRenderer->getLinkClasses( $t ); - } - /** * This function returns an HTML link to the given target. It serves a few * purposes: @@ -927,7 +904,7 @@ class Linker { * red if the user has no edits? * @param int $flags Customisation flags (e.g. Linker::TOOL_LINKS_NOBLOCK * and Linker::TOOL_LINKS_EMAIL). - * @param int $edits User edit count (optional, for performance) + * @param int|null $edits User edit count (optional, for performance) * @return string HTML fragment */ public static function userToolLinks( @@ -989,7 +966,7 @@ class Linker { * @since 1.16.3 * @param int $userId User identifier * @param string $userText User name or IP address - * @param int $edits User edit count (optional, for performance) + * @param int|null $edits User edit count (optional, for performance) * @return string */ public static function userToolLinksRedContribs( $userId, $userText, $edits = null ) { @@ -1519,7 +1496,7 @@ class Linker { * @return string */ public static function tocIndent() { - return "\n