summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-17 19:23:35 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-17 19:23:35 +0000
commit6078c16e3e4755bf80533cb654c39bb2e7870043 (patch)
treee8fc47a4b46eabdf26eb51985878ac667a68616f
parent867304f3bcbd5bfe5c5fef8c2c10f490e75163e5 (diff)
downloadbrdo-6078c16e3e4755bf80533cb654c39bb2e7870043.tar.gz
brdo-6078c16e3e4755bf80533cb654c39bb2e7870043.tar.bz2
#279657 by zeta ζ: Code style improvement to locale module.
-rw-r--r--includes/common.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 2336e5fda..a13756512 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -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