Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/104029
Change subject: Replace deprecated Linker::makeBrokenLink() ...................................................................... Replace deprecated Linker::makeBrokenLink() Change-Id: I95283712fed8774c7b5ef27ac57f6859305c5d85 --- M InterlanguageExtension.php 1 file changed, 11 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Interlanguage refs/changes/29/104029/1 diff --git a/InterlanguageExtension.php b/InterlanguageExtension.php index b892ef1..f9d86e2 100644 --- a/InterlanguageExtension.php +++ b/InterlanguageExtension.php @@ -149,8 +149,17 @@ if( isset( $a['missing'] ) ) { // There is no such article on the central wiki, so we will display a broken link // to the article on the central wiki - $linker = new Linker(); - $res=array( $linker->makeBrokenLink( $wgInterlanguageExtensionInterwiki . $this->translateNamespace( $param ), $wgInterlanguageExtensionInterwiki . $param ), 'noparse' => true, 'isHTML' => true); + $res = array( + Linker::link( + Title::newFromText( $wgInterlanguageExtensionInterwiki . $this->translateNamespace( $param ) ), + $wgInterlanguageExtensionInterwiki . $param, + array(), + array(), + array( 'broken' ) + ), + 'noparse' => true, + 'isHTML' => true + ); } else { if( isset( $a['langlinks'] ) ) { // Prepare the array for sorting -- To view, visit https://gerrit.wikimedia.org/r/104029 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I95283712fed8774c7b5ef27ac57f6859305c5d85 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Interlanguage Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits