Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -4432,6 +4432,7 @@ |
4433 | 4433 | # * upright reduce width for upright images, rounded to full __0 px |
4434 | 4434 | # * border draw a 1px border around the image |
4435 | 4435 | # * alt Text for HTML alt attribute (defaults to empty) |
| 4436 | + # * link Set the target of the image link. Can be external, interwiki, or local |
4436 | 4437 | # vertical-align values (no % or length right now): |
4437 | 4438 | # * baseline |
4438 | 4439 | # * sub |
Index: trunk/phase3/includes/parser/ParserOutput.php |
— | — | @@ -101,6 +101,10 @@ |
102 | 102 | } |
103 | 103 | |
104 | 104 | function addLink( $title, $id = null ) { |
| 105 | + if ( $title->isExternal() ) { |
| 106 | + // Don't record interwikis in pagelinks |
| 107 | + return; |
| 108 | + } |
105 | 109 | $ns = $title->getNamespace(); |
106 | 110 | $dbk = $title->getDBkey(); |
107 | 111 | if ( $ns == NS_MEDIA ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -287,6 +287,8 @@ |
288 | 288 | database type |
289 | 289 | * (bug 19759) successbox on Special:Preferences now correctly aligned on |
290 | 290 | standard, nostalgia and cologneblue skin |
| 291 | +* (bug 19814) interwiki links from file links ([[File:Foo.jpg|link=de:Test]]) |
| 292 | + are no longer recorded in the pagelinks table |
291 | 293 | |
292 | 294 | == API changes in 1.16 == |
293 | 295 | |