From 8398029e4467d0f3bb9e11f54cd708652fc9091c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 7 Jan 2009 02:55:43 +0000 Subject: [PATCH] Revert r45389 "Disallow broken Talk:File:x type titles (bug 5280)" This is doing really weird things, like normalizing 'Talk:Wikipedia:Foo' to 'Wikipedia:Talk:Foo' which then redirects me to 'Talk:Foo' at Wikipedia. Need to create some test cases for this if it's redone. --- includes/Title.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index d41485cd2e..179bc66753 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2076,12 +2076,7 @@ class Title { if ( $ns = $wgContLang->getNsIndex( $p )) { # Ordinary namespace $dbkey = $m[2]; - # Disallow Talk:File:x type titles... - if( $this->mNamespace == NS_TALK && $ns > 0 ) - return false; // bug 5280 title issues $this->mNamespace = $ns; - if( $ns == NS_TALK && $firstPass ) - continue; # Do another namespace split... } elseif( Interwiki::isValidInterwiki( $p ) ) { if( !$firstPass ) { # Can't make a local interwiki link to an interwiki link. -- 2.20.1