fixed bug where section anchor was appended twice (once with illegal chars), whitelis...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 24 Jun 2004 16:20:49 +0000 (16:20 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 24 Jun 2004 16:20:49 +0000 (16:20 +0000)
includes/Title.php

index 66c52e4..bdb8370 100644 (file)
@@ -375,9 +375,6 @@ class Title {
                $n = $wgLang->getNsText( $this->mNamespace );
                if ( "" != $n ) { $n .= ":"; }
                $u = str_replace( "$1", $n . $this->mUrlform, $p );
-               if ( "" != $this->mFragment ) {
-                       $u .= "#" . wfUrlencode( $this->mFragment );
-               }
                return $u;
        }
 
@@ -531,7 +528,7 @@ class Title {
                if( in_array( $name, $wgWhitelistRead ) ) return true;
                
                # Compatibility with old settings
-               if( $this->getNamespace() == NS_ARTICLE ) {
+               if( $this->getNamespace() == NS_MAIN ) {
                        if( in_array( ":" . $name, $wgWhitelistRead ) ) return true;
                }
                return false;