Bug 32673: Keep the username in the input field if not existing
[lhc/web/wiklou.git] / includes / specials / SpecialDisambiguations.php
index e62253b..8b7f667 100644 (file)
@@ -122,15 +122,14 @@ class DisambiguationsPage extends PageQueryPage {
        }
 
        function formatResult( $skin, $result ) {
-               global $wgContLang;
                $title = Title::newFromID( $result->value );
                $dp = Title::makeTitle( $result->namespace, $result->title );
 
-               $from = $skin->link( $title );
-               $edit = $skin->link( $title, wfMsgExt( 'parentheses', array( 'escape' ), wfMsg( 'editlink' ) ) ,
+               $from = Linker::link( $title );
+               $edit = Linker::link( $title, wfMsgExt( 'parentheses', array( 'escape' ), wfMsg( 'editlink' ) ) ,
                        array(), array( 'redirect' => 'no', 'action' => 'edit' ) );
-               $arr  = $wgContLang->getArrow();
-               $to   = $skin->link( $dp );
+               $arr  = $this->getLanguage()->getArrow();
+               $to   = Linker::link( $dp );
 
                return "$from $edit $arr $to";
        }