Oops, forgot to change this in r71426
[lhc/web/wiklou.git] / includes / parser / Parser_LinkHooks.php
index 8b63de8..893bf23 100644 (file)
@@ -111,8 +111,6 @@ class Parser_LinkHooks extends Parser
         * @private
         */
        function replaceInternalLinks2( &$s ) {
-               global $wgContLang;
-
                wfProfileIn( __METHOD__ );
 
                wfProfileIn( __METHOD__.'-setup' );
@@ -128,7 +126,6 @@ class Parser_LinkHooks extends Parser
                        $titleRegex = "/^([{$tc}]+)$/sD";
                }
 
-               $sk = $this->mOptions->getSkin();
                $holders = new LinkHolderArray( $this );
                
                if( is_null( $this->mTitle ) ) {
@@ -136,13 +133,7 @@ class Parser_LinkHooks extends Parser
                        wfProfileOut( __METHOD__.'-setup' );
                        throw new MWException( __METHOD__.": \$this->mTitle is null\n" );
                }
-               $nottalk = !$this->mTitle->isTalkPage();
-               
-               if($wgContLang->hasVariants()) {
-                       $selflink = $wgContLang->convertLinkToAllVariants($this->mTitle->getPrefixedText());
-               } else {
-                       $selflink = array($this->mTitle->getPrefixedText());
-               }
+
                wfProfileOut( __METHOD__.'-setup' );
                
                $offset = 0;