Merge "add Article::setParserOptions" into Wikidata
authorDaniel Werner <daniel.werner@wikimedia.de>
Tue, 7 Aug 2012 17:08:05 +0000 (17:08 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 7 Aug 2012 17:08:05 +0000 (17:08 +0000)
includes/parser/Parser.php

index 13cf3b1..d313b65 100644 (file)
@@ -1937,6 +1937,7 @@ class Parser {
                                # Interwikis
                                wfProfileIn( __METHOD__."-interwiki" );
                                if ( $iw && $this->mOptions->getInterwikiMagic() && $nottalk && Language::fetchLanguageName( $iw, null, 'mw' ) ) {
+                                       // FIXME: the above check prevents links to sites with identifiers that are not language codes
                                        $this->mOutput->addLanguageLink( $nt->getFullText() );
                                        $s = rtrim( $s . $prefix );
                                        $s .= trim( $trail, "\n" ) == '' ? '': $prefix . $trail;