MessageCache: Remove redundant Language::ucfirst() optimisation
Language::ucfirst() already has this optimisation. The expensive method is Language::uc(), which is only called when needed. The ord() < 128 is one of the conditionals in Language::ucfirst(). Change-Id: Idd648b7b84eba1f92dda904438122fe38d3cf22b
This commit is contained in:
parent
0e29517c0d
commit
2d3ea7996f
1 changed files with 1 additions and 5 deletions
6
includes/cache/MessageCache.php
vendored
6
includes/cache/MessageCache.php
vendored
|
|
@ -749,11 +749,7 @@ class MessageCache {
|
|||
|
||||
Hooks::run( 'MessageCache::get', array( &$lckey ) );
|
||||
|
||||
if ( ord( $lckey ) < 128 ) {
|
||||
$uckey = ucfirst( $lckey );
|
||||
} else {
|
||||
$uckey = $wgContLang->ucfirst( $lckey );
|
||||
}
|
||||
$uckey = $wgContLang->ucfirst( $lckey );
|
||||
|
||||
// Loop through each language in the fallback list until we find something useful
|
||||
$lang = wfGetLangObj( $langcode );
|
||||
|
|
|
|||
Loading…
Reference in a new issue