Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php |
— | — | @@ -321,9 +321,6 @@ |
322 | 322 | function ifexistCommon( &$parser, $frame, $titletext = '', $then = '', $else = '' ) { |
323 | 323 | global $wgContLang; |
324 | 324 | $title = Title::newFromText( $titletext ); |
325 | | - if( is_null( $title ) ) # It may be urlencoded (bug 14779) |
326 | | - $title = Title::newFromURL( urldecode( $titletext ) ); |
327 | | - |
328 | 325 | $wgContLang->findVariantLink( $titletext, $title, true ); |
329 | 326 | if ( $title ) { |
330 | 327 | if( $title->getNamespace() == NS_MEDIA ) { |
Index: trunk/extensions/ParserFunctions/funcsParserTests.txt |
— | — | @@ -82,24 +82,6 @@ |
83 | 83 | !! end |
84 | 84 | |
85 | 85 | !! test |
86 | | -Bug 14779 - {{#ifexist}} does not recognise URL encoded filenames |
87 | | -Based on http://test.wikipedia.org/wiki/User:Raymond/ifexist |
88 | | -!! input |
89 | | -{{#ifexist:Media:F%6fobar.jpg|found|not found}} |
90 | | -[[:File:Dionysos-Brunnen am Kölner Dom.jpg]] |
91 | | -{{#ifexist:File:Dionysos-Brunnen am Kölner Dom.jpg|found|not found}} |
92 | | -[[:File:Dionysos-Brunnen_am_K%C3%B6lner_Dom.jpg]] |
93 | | -{{#ifexist:File:Dionysos-Brunnen_am_K%C3%B6lner_Dom.jpg|found|not found}} |
94 | | -!! result |
95 | | -<p>found |
96 | | -<a href="https://www.mediawiki.org/wiki/File:Dionysos-Brunnen_am_K%C3%B6lner_Dom.jpg" title="File:Dionysos-Brunnen am Kölner Dom.jpg">File:Dionysos-Brunnen am Kölner Dom.jpg</a> |
97 | | -found |
98 | | -<a href="https://www.mediawiki.org/wiki/File:Dionysos-Brunnen_am_K%C3%B6lner_Dom.jpg" title="File:Dionysos-Brunnen am Kölner Dom.jpg">File:Dionysos-Brunnen_am_Kölner_Dom.jpg</a> |
99 | | -found |
100 | | -</p> |
101 | | -!! end |
102 | | - |
103 | | -!! test |
104 | 86 | #if |
105 | 87 | !! input |
106 | 88 | {{#if: | yes | no}} |