Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | * @param string $term |
113 | 113 | */ |
114 | 114 | public function showResults( $term ) { |
115 | | - global $wgOut, $wgDisableTextSearch; |
| 115 | + global $wgOut, $wgDisableTextSearch, $wgContLang; |
116 | 116 | wfProfileIn( __METHOD__ ); |
117 | 117 | |
118 | 118 | $this->setupPage( $term ); |
— | — | @@ -129,7 +129,8 @@ |
130 | 130 | Xml::closeElement('table') |
131 | 131 | ); |
132 | 132 | |
133 | | - if( '' === trim( $term ) ) { |
| 133 | + $filePrefix = $wgContLang->getFormattedNsText(NS_FILE).':'; |
| 134 | + if( '' === trim( $term ) || $filePrefix === trim( $term ) ) { |
134 | 135 | // Empty query -- straight view of search form |
135 | 136 | wfProfileOut( __METHOD__ ); |
136 | 137 | return; |