deprecate make(Known?)LinkObj methods
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 5 Oct 2012 18:20:19 +0000 (20:20 +0200)
committerAntoine Musso <hashar@free.fr>
Thu, 25 Oct 2012 08:33:57 +0000 (10:33 +0200)
Restore deprecation warnings from 1.16. The methods Linker::makeLinkObj
and Linker::makeKnownLinkObj should be replaced by calls to link().

Change-Id: I658289ac2b52a193b76edd946368e228cfa389cb

includes/Linker.php

index b947f8f..e5db232 100644 (file)
@@ -2136,7 +2136,7 @@ class Linker {
        }
 
        /**
-        * @deprecated since 1.16 Use link()
+        * @deprecated since 1.16 Use link(); warnings since 1.21
         *
         * Make a link for a title which may or may not be in the database. If you need to
         * call this lots of times, pre-fill the link cache with a LinkBatch, otherwise each
@@ -2153,7 +2153,7 @@ class Linker {
         * @return string
         */
        static function makeLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' ) {
-               # wfDeprecated( __METHOD__, '1.16' ); // See r105985 and it's revert. Somewhere still used.
+               wfDeprecated( __METHOD__, '1.21' );
 
                wfProfileIn( __METHOD__ );
                $query = wfCgiToArray( $query );
@@ -2169,7 +2169,7 @@ class Linker {
        }
 
        /**
-        * @deprecated since 1.16 Use link()
+        * @deprecated since 1.16 Use link(); warnings since 1.21
         *
         * Make a link for a title which definitely exists. This is faster than makeLinkObj because
         * it doesn't have to do a database query. It's also valid for interwiki titles and special
@@ -2187,7 +2187,7 @@ class Linker {
        static function makeKnownLinkObj(
                $title, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '', $style = ''
        ) {
-               # wfDeprecated( __METHOD__, '1.16' ); // See r105985 and it's revert. Somewhere still used.
+               wfDeprecated( __METHOD__, '1.21' );
 
                wfProfileIn( __METHOD__ );