From: Krinkle Date: Tue, 9 Oct 2018 01:19:02 +0000 (+0000) Subject: Revert "Replace Media namespace redirects with File namespace" X-Git-Tag: 1.34.0-rc.0~3846^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=1c101265cf2ce13c2d3427bea265a18b2d94331f;p=lhc%2Fweb%2Fwiklou.git Revert "Replace Media namespace redirects with File namespace" Per T203942. This reverts commit 613e269920a7d268b012d61fec24fc4d04b1cd7a. Change-Id: I4febbe9c650894976a580e584d0a7c11de12ff37 --- 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;