Revert r45389 "Disallow broken Talk:File:x type titles (bug 5280)"
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 7 Jan 2009 02:55:43 +0000 (02:55 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 7 Jan 2009 02:55:43 +0000 (02:55 +0000)
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

index d41485c..179bc66 100644 (file)
@@ -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.