bring back Linker::tooltip()
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 13 Dec 2011 09:52:39 +0000 (09:52 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 13 Dec 2011 09:52:39 +0000 (09:52 +0000)
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

index 8f5549a..6cb92fc 100644 (file)
@@ -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.