Page MenuHomePhabricator

Replace usages of Linker::link() and Linker::linkKnown() in extension MintyDocs
Closed, ResolvedPublic

Description

Linker::link() and Linker::linkKnown() functions are deprecated as of MediaWiki 1.28, and the new LinkRenderer is preferred instead.
https://doc.wikimedia.org/mediawiki-core/master/php/classLinker.html

./MintyDocs/includes/MintyDocsHooks.php:		$draftLink = Linker::linkKnown( $draftTitle, 'draft page' );
./MintyDocs/includes/MintyDocsHooks.php:			$linkToPublished = Linker::linkKnown( $liveTitle, $html = null, $attribs = [], $query );
./MintyDocs/includes/MintyDocsManual.php:					$link = Linker::link( $title, $lineValue, [ 'data-mdtype' => 'topic' ] );
./MintyDocs/includes/MintyDocsManual.php:		$linkToManual = Linker::link( $this->mTitle, 'About' );
./MintyDocs/includes/MintyDocsManual.php:				$otherVersionsText .= "<li>" . Linker::link( $manualPage, $versionName ) . "</li>\n";
./MintyDocs/includes/MintyDocsPage.php:		return Linker::link( $this->mTitle, $this->getDisplayName() );
./MintyDocs/includes/MintyDocsParserFunctions.php:			$str = Linker::link( $title, $linkText, $customAttribs = [], $query );
./MintyDocs/includes/MintyDocsProduct.php:			$versionListText .= '<li>' . Linker::link( $version->getTitle(), $versionString ) . "</li>\n";
./MintyDocs/includes/MintyDocsTopic.php:				$otherVersionsText .= "<li>" . Linker::link( $topicPage, $versionName ) . "</li>\n";
./MintyDocs/includes/MintyDocsTopic.php:		return Linker::link( $this->mTitle, $displayName, [], $query );
./MintyDocs/includes/specials/MintyDocsCopy.php:		$text = '<p>These will be copied to the location ' . Linker::link( $targetTitle ) . ".</p>\n";
./MintyDocs/includes/specials/MintyDocsPublish.php:				$text = 'The page ' . Linker::link( $toTitle ) . ' will be created.';
./MintyDocs/includes/specials/MintyDocsPublish.php:				$text = 'The page ' . Linker::link( $toTitle ) . ' will be modified.';
./MintyDocs/includes/specials/MintyDocsPublish.php:				$titlesStr .= Linker::link( $title );

Event Timeline

Change 813332 had a related patch set uploaded (by Southparkfan; author: Southparkfan):

[mediawiki/extensions/MintyDocs@master] Replace usage of Linker with LinkRenderer services

https://gerrit.wikimedia.org/r/813332

Change 813332 merged by jenkins-bot:

[mediawiki/extensions/MintyDocs@master] Replace usage of Linker with LinkRenderer services

https://gerrit.wikimedia.org/r/813332