Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -295,6 +295,8 @@ |
296 | 296 | * Add createpage and createtalk permission keys, allowing a quick |
297 | 297 | switch to disable page creation for anonymous users. |
298 | 298 | * (bug 4167) Fix regression caused by patch for bug 153 |
| 299 | +* (bug 1850) Additional fixes so existing local and remote images |
| 300 | + get a blue link even if there's no local description page |
299 | 301 | |
300 | 302 | |
301 | 303 | === Caveats === |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -1464,6 +1464,15 @@ |
1465 | 1465 | } elseif( $ns == NS_SPECIAL ) { |
1466 | 1466 | $s .= $prefix . $sk->makeKnownLinkObj( $nt, $text, '', $trail ); |
1467 | 1467 | continue; |
| 1468 | + } elseif( $ns == NS_IMAGE ) { |
| 1469 | + $img = Image::newFromTitle( $nt ); |
| 1470 | + if( $img->exists() ) { |
| 1471 | + // Force a blue link if the file exists; may be a remote |
| 1472 | + // upload on the shared repository, and we want to see its |
| 1473 | + // auto-generated page. |
| 1474 | + $s .= $prefix . $sk->makeKnownLinkObj( $nt, $text, '', $trail ); |
| 1475 | + continue; |
| 1476 | + } |
1468 | 1477 | } |
1469 | 1478 | $s .= $this->makeLinkHolder( $nt, $text, '', $trail, $prefix ); |
1470 | 1479 | } |