Fix for parser test error "Image link to nonexistent file (bug 1850)", both "good"
and "bad"
This commit is contained in:
parent
089357da44
commit
4b512f31d2
2 changed files with 4 additions and 4 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 | ||||