summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-12-09 02:12:08 +0000
committerDries Buytaert <dries@buytaert.net>2010-12-09 02:12:08 +0000
commit7361b458f1ede23407435fbb58bfd40389c5c70b (patch)
treebe5439dd2b82e1d1b3c613f49daf54a973378269 /includes
parentf3a9f680022f07b8af458690bf5988394a766695 (diff)
downloadbrdo-7361b458f1ede23407435fbb58bfd40389c5c70b.tar.gz
brdo-7361b458f1ede23407435fbb58bfd40389c5c70b.tar.bz2
- Patch #991588 by mfer, mbutcher: make t() faster.
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc2
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)) {