From 6078c16e3e4755bf80533cb654c39bb2e7870043 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 17 Sep 2008 19:23:35 +0000 Subject: =?UTF-8?q?#279657=20by=20zeta=20=CE=B6:=20Code=20style=20improvem?= =?UTF-8?q?ent=20to=20locale=20module.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/common.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/common.inc') 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 -- cgit v1.2.3