Fix for parser test error "Image link to nonexistent file (bug 1850)", both "good"

and "bad"
This commit is contained in:
Magnus Manske 2006-02-07 17:50:25 +00:00
parent 089357da44
commit 4b512f31d2
2 changed files with 4 additions and 4 deletions

View file

@ -447,7 +447,7 @@ class Linker {
global $wgContLang, $wgUser, $wgThumbLimits;
$img = new Image( $nt );
if ( !$img->allowInlineDisplay() ) {
if ( !$img->allowInlineDisplay() && $img->exists() ) {
return $this->makeKnownLinkObj( $nt );
}

View file

@ -1,4 +1,4 @@
# MediaWiki Parser test cases
# MediaWiki Parser test cases
# Some taken from http://meta.wikimedia.org/wiki/Parser_testing
# All (C) their respective authors and released under the GPL
#
@ -670,9 +670,9 @@ BUG 289: literal double quote in bracketed URL
!! test
External links: invalid character
!! input
[http://www.example.com test]
[http://www.example.com test]
!! result
<p>[<a href="http://www.example.com" class='external free' title="http://www.example.com" rel="nofollow">http://www.example.com</a> test]
<p>[<a href="http://www.example.com" class='external free' title="http://www.example.com" rel="nofollow">http://www.example.com</a> test]
</p>
!! end