* Determines if $user is unable to edit this page because it has been protected
* by $wgNamespaceProtection.
*
* Determines if $user is unable to edit this page because it has been protected
* by $wgNamespaceProtection.
*
public static function capitalize( $text, $ns = NS_MAIN ) {
$services = MediaWikiServices::getInstance();
if ( $services->getNamespaceInfo()->isCapitalized( $ns ) ) {
public static function capitalize( $text, $ns = NS_MAIN ) {
$services = MediaWikiServices::getInstance();
if ( $services->getNamespaceInfo()->isCapitalized( $ns ) ) {