#279657 by zeta ζ: Code style improvement to locale module.
parent
867304f3bc
commit
6078c16e3e
|
@ -806,7 +806,9 @@ function t($string, $args = array(), $langcode = NULL) {
|
|||
global $language;
|
||||
static $custom_strings;
|
||||
|
||||
$langcode = isset($langcode) ? $langcode : $language->language;
|
||||
if (!isset($langcode)) {
|
||||
$langcode = $language->language;
|
||||
}
|
||||
|
||||
// First, check for an array of customized strings. If present, use the array
|
||||
// *instead of* database lookups. This is a high performance way to provide a
|
||||
|
|
Loading…
Reference in New Issue