X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FMWGrants.php;h=c7c54fd5037fddc676df222565278e345d5890a6;hp=58efdc727864d2107d40779116c83b3ebf6102ca;hb=c8e482371407477ecd4f0a1b5778e565d3963a93;hpb=4465a9fb5a8763a394b3e1795506f939fc0a9005 diff --git a/includes/MWGrants.php b/includes/MWGrants.php index 58efdc7278..c7c54fd503 100644 --- a/includes/MWGrants.php +++ b/includes/MWGrants.php @@ -17,6 +17,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html */ +use MediaWiki\MediaWikiServices; /** * A collection of public static functions to deal with grants. @@ -178,9 +179,10 @@ class MWGrants { * @return string (proto-relative) HTML link */ public static function getGrantsLink( $grant, $lang = null ) { - return \Linker::linkKnown( + $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + return $linkRenderer->makeKnownLink( \SpecialPage::getTitleFor( 'Listgrants', false, $grant ), - htmlspecialchars( self::grantName( $grant, $lang ) ) + self::grantName( $grant, $lang ) ); }