dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
30d416f
)
Merge "add Article::setParserOptions" into Wikidata
author
Daniel Werner
<daniel.werner@wikimedia.de>
Tue, 7 Aug 2012 17:08:05 +0000
(17:08 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 7 Aug 2012 17:08:05 +0000
(17:08 +0000)
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
13cf3b1
..
d313b65
100644
(file)
--- a/
includes/parser/Parser.php
+++ b/
includes/parser/Parser.php
@@
-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;