Linker::makeLinkObj() was removed
Change-Id: Id0fe255fd65403d02498f5a98292c560d39dd95a
This commit is contained in:
parent
85f9456b2d
commit
13815fc4ff
3 changed files with 2 additions and 32 deletions
|
|
@ -210,6 +210,7 @@ changes to languages because of Phabricator reports.
|
|||
* LogPage::logHeader() was removed (deprecated since 1.19).
|
||||
* wfCheckLimits() was removed (deprecated since 1.24).
|
||||
* Linker::makeKnownLinkObj() was removed (deprecated since 1.16).
|
||||
* Linker::makeLinkObj() was removed (deprecated since 1.16).
|
||||
|
||||
== Compatibility ==
|
||||
|
||||
|
|
|
|||
|
|
@ -2315,36 +2315,6 @@ class Linker {
|
|||
|
||||
/* Deprecated methods */
|
||||
|
||||
/**
|
||||
* @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
|
||||
* call to this will result in a DB query.
|
||||
*
|
||||
* @param Title $nt The title object to make the link from, e.g. from Title::newFromText.
|
||||
* @param string $text Link text
|
||||
* @param string $query Optional query part
|
||||
* @param string $trail Optional trail. Alphabetic characters at the start of this string will
|
||||
* be included in the link text. Other characters will be appended after
|
||||
* the end of the link.
|
||||
* @param string $prefix Optional prefix. As trail, only before instead of after.
|
||||
* @return string
|
||||
*/
|
||||
static function makeLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' ) {
|
||||
wfDeprecated( __METHOD__, '1.21' );
|
||||
|
||||
$query = wfCgiToArray( $query );
|
||||
list( $inside, $trail ) = self::splitTrail( $trail );
|
||||
if ( $text === '' ) {
|
||||
$text = self::linkText( $nt );
|
||||
}
|
||||
|
||||
$ret = self::link( $nt, "$prefix$text$inside", array(), $query ) . $trail;
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the attributes for the tooltip and access key.
|
||||
* @param string $name
|
||||
|
|
|
|||
|
|
@ -5276,9 +5276,8 @@ class Parser {
|
|||
}
|
||||
|
||||
/**
|
||||
* @todo FIXME: Update documentation. makeLinkObj() is deprecated.
|
||||
* Replace "<!--LINK-->" link placeholders with actual links, in the buffer
|
||||
* Placeholders created in Skin::makeLinkObj()
|
||||
* Placeholders created in Linker::link()
|
||||
*
|
||||
* @param string $text
|
||||
* @param int $options
|
||||
|
|
|
|||
Loading…
Reference in a new issue