From bf006dd4f372db0adb8d5b883587ecb6b3b72789 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 13 Dec 2011 09:52:39 +0000 Subject: [PATCH] bring back Linker::tooltip() Was marked deprecated with r42702 although that helper makes code a bit nicer: Linker::tooltip( 'message' ); Xml::expandAttributes( array( 'title' => Linker::titleAttrib( 'message' ) ) ); (the later would give you 'title=""' when 'tooltip-message' message does not exist. --- includes/Linker.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 8f5549a7bb..6cb92fc890 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -2034,14 +2034,9 @@ class Linker { } /** - * @deprecated since 1.14 - * TODO: remove?! - * * Returns raw bits of HTML, use titleAttrib() */ public static function tooltip( $name, $options = null ) { - wfDeprecated( __METHOD__, '1.14' ); - # @todo FIXME: If Sanitizer::expandAttributes() treated "false" as "output # no attribute" instead of "output '' as value for attribute", this # would be two lines. -- 2.20.1