Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Namespace.php.orig 2013-05-20 15:15:09.315229075 +0000
- +++ Namespace.php 2013-05-20 15:15:29.987229307 +0000
- @@ -37,7 +37,7 @@
- * forevermore. Historically, they could've probably been lowercased too,
- * but some things are just too ingrained now. :)
- */
- - private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_USER, NS_MEDIAWIKI );
- + private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_MEDIAWIKI );
- /**
- * Throw an exception when trying to get the subject or talk page
- --- User.php.orig 2013-05-20 14:50:36.915229198 +0000
- +++ User.php 2013-05-20 15:15:59.439228833 +0000
- @@ -559,10 +559,9 @@
- if ( $name == ''
- || User::isIP( $name )
- || strpos( $name, '/' ) !== false
- - || strlen( $name ) > $wgMaxNameChars
- - || $name != $wgContLang->ucfirst( $name ) ) {
- + || strlen( $name ) > $wgMaxNameChars ) {
- wfDebugLog( 'username', __METHOD__ .
- - ": '$name' invalid due to empty, IP, slash, length, or lowercase" );
- + ": '$name' invalid due to empty, IP, slash, or length" );
- return false;
- }
- @@ -765,10 +764,6 @@
- * @return bool|string
- */
- public static function getCanonicalName( $name, $validate = 'valid' ) {
- - # Force usernames to capital
- - global $wgContLang;
- - $name = $wgContLang->ucfirst( $name );
- -
- # Reject names containing '#'; these will be cleaned up
- # with title normalisation, but then it's too late to
- # check elsewhere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement