Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -218,6 +218,10 @@ |
219 | 219 | } else if( NS_SPECIAL == $title->getNamespace() ) { |
220 | 220 | /* actions that need to be made when we have a special pages */ |
221 | 221 | SpecialPage::executePath( $title ); |
| 222 | + } else if( NS_MEDIA == $title->getNamespace() ) { |
| 223 | + global $wgOut; |
| 224 | + $fileTitle = Title::makeTitle( NS_FILE, $title->getDBKey() ); |
| 225 | + $wgOut->redirect( $fileTitle->getFullUrl() ); |
222 | 226 | } else { |
223 | 227 | /* Try low-level file cache hit */ |
224 | 228 | if( $title->getNamespace() != NS_MEDIAWIKI && HTMLFileCache::useFileCache() ) { |