Siebrand has submitted this change and it was merged.

Change subject: Replace deprecated Linker::makeBrokenLink()
......................................................................


Replace deprecated Linker::makeBrokenLink()

Change-Id: I95283712fed8774c7b5ef27ac57f6859305c5d85
---
M InterlanguageExtension.php
1 file changed, 11 insertions(+), 2 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  Siebrand: Verified



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: merged
Gerrit-Change-Id: I95283712fed8774c7b5ef27ac57f6859305c5d85
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Interlanguage
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@wikimedia.org>
Gerrit-Reviewer: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: Nikola Smolenski <smole...@eunet.rs>
Gerrit-Reviewer: Parent5446 <tylerro...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to