From: Gabriel Wicke Date: Thu, 24 Jun 2004 16:20:49 +0000 (+0000) Subject: fixed bug where section anchor was appended twice (once with illegal chars), whitelis... X-Git-Tag: 1.5.0alpha1~2782 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=244e0280f9893192156046e8c1f09087173020c7;p=lhc%2Fweb%2Fwiklou.git fixed bug where section anchor was appended twice (once with illegal chars), whitelist function bug fix (use NS_MAIN instead of NS_ARTICLE) --- diff --git a/includes/Title.php b/includes/Title.php index 66c52e436f..bdb837001e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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;