From 49de213dc17cd5893cd8ab3c683adc3e52abf98b Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 5 Oct 2012 20:20:19 +0200 Subject: [PATCH] deprecate make(Known?)LinkObj methods 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index b947f8f4e7..e5db232a51 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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__ ); -- 2.20.1