From 1c101265cf2ce13c2d3427bea265a18b2d94331f Mon Sep 17 00:00:00 2001 From: Krinkle Date: Tue, 9 Oct 2018 01:19:02 +0000 Subject: [PATCH] Revert "Replace Media namespace redirects with File namespace" Per T203942. This reverts commit 613e269920a7d268b012d61fec24fc4d04b1cd7a. Change-Id: I4febbe9c650894976a580e584d0a7c11de12ff37 --- includes/MediaWiki.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index e10a530062..4636ba349e 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -369,11 +369,6 @@ class MediaWiki { } throw new HttpError( 500, $message ); } - // Protect against redirects to NS_MEDIA namespace - // when the user probably wants NS_FILE - if ( $title->inNamespace( NS_MEDIA ) ) { - $title->mNamespace = NS_FILE; - } $output->setCdnMaxage( 1200 ); $output->redirect( $targetUrl, '301' ); return true; -- 2.20.1