Advertisement
Guest User

Untitled

a guest
Jun 26th, 2013
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. --- Namespace.php.orig 2013-05-20 15:15:09.315229075 +0000
  2. +++ Namespace.php 2013-05-20 15:15:29.987229307 +0000
  3. @@ -37,7 +37,7 @@
  4. * forevermore. Historically, they could've probably been lowercased too,
  5. * but some things are just too ingrained now. :)
  6. */
  7. - private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_USER, NS_MEDIAWIKI );
  8. + private static $alwaysCapitalizedNamespaces = array( NS_SPECIAL, NS_MEDIAWIKI );
  9.  
  10. /**
  11. * Throw an exception when trying to get the subject or talk page
  12. --- User.php.orig 2013-05-20 14:50:36.915229198 +0000
  13. +++ User.php 2013-05-20 15:15:59.439228833 +0000
  14. @@ -559,10 +559,9 @@
  15. if ( $name == ''
  16. || User::isIP( $name )
  17. || strpos( $name, '/' ) !== false
  18. - || strlen( $name ) > $wgMaxNameChars
  19. - || $name != $wgContLang->ucfirst( $name ) ) {
  20. + || strlen( $name ) > $wgMaxNameChars ) {
  21. wfDebugLog( 'username', __METHOD__ .
  22. - ": '$name' invalid due to empty, IP, slash, length, or lowercase" );
  23. + ": '$name' invalid due to empty, IP, slash, or length" );
  24. return false;
  25. }
  26.  
  27. @@ -765,10 +764,6 @@
  28. * @return bool|string
  29. */
  30. public static function getCanonicalName( $name, $validate = 'valid' ) {
  31. - # Force usernames to capital
  32. - global $wgContLang;
  33. - $name = $wgContLang->ucfirst( $name );
  34. -
  35. # Reject names containing '#'; these will be cleaned up
  36. # with title normalisation, but then it's too late to
  37. # check elsewhere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement