#279657 by zeta ζ: Code style improvement to locale module.

merge-requests/26/head
Angie Byron 2008-09-17 19:23:35 +00:00
parent 867304f3bc
commit 6078c16e3e
1 changed files with 3 additions and 1 deletions

View File

@ -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