diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-12-09 02:12:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-12-09 02:12:08 +0000 |
commit | 7361b458f1ede23407435fbb58bfd40389c5c70b (patch) | |
tree | be5439dd2b82e1d1b3c613f49daf54a973378269 /includes | |
parent | f3a9f680022f07b8af458690bf5988394a766695 (diff) | |
download | brdo-7361b458f1ede23407435fbb58bfd40389c5c70b.tar.gz brdo-7361b458f1ede23407435fbb58bfd40389c5c70b.tar.bz2 |
- Patch #991588 by mfer, mbutcher: make t() faster.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 1e446f01b..c2c8e7eba 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1429,7 +1429,7 @@ function t($string, array $args = array(), array $options = array()) { $string = $custom_strings[$options['langcode']][$options['context']][$string]; } // Translate with locale module if enabled. - elseif (function_exists('locale') && $options['langcode'] != 'en') { + elseif ($options['langcode'] != 'en' && function_exists('locale')) { $string = locale($string, $options['context'], $options['langcode']); } if (empty($args)) { |