Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -1,4 +1,4 @@ |
2 | | -# MediaWiki Parser test cases |
| 2 | +# MediaWiki Parser test cases |
3 | 3 | # Some taken from http://meta.wikimedia.org/wiki/Parser_testing |
4 | 4 | # All (C) their respective authors and released under the GPL |
5 | 5 | # |
— | — | @@ -670,9 +670,9 @@ |
671 | 671 | !! test |
672 | 672 | External links: invalid character |
673 | 673 | !! input |
674 | | -[http://www.example.com test] |
| 674 | +[http://www.example.com test] |
675 | 675 | !! result |
676 | | -<p>[<a href="http://www.example.com" class='external free' title="http://www.example.com" rel="nofollow">http://www.example.com</a> test] |
| 676 | +<p>[<a href="http://www.example.com" class='external free' title="http://www.example.com" rel="nofollow">http://www.example.com</a> test] |
677 | 677 | </p> |
678 | 678 | !! end |
679 | 679 | |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -447,7 +447,7 @@ |
448 | 448 | global $wgContLang, $wgUser, $wgThumbLimits; |
449 | 449 | |
450 | 450 | $img = new Image( $nt ); |
451 | | - if ( !$img->allowInlineDisplay() ) { |
| 451 | + if ( !$img->allowInlineDisplay() && $img->exists() ) { |
452 | 452 | return $this->makeKnownLinkObj( $nt ); |
453 | 453 | } |
454 | 454 | |