aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-13 14:39:32 +0300
committerSem <sembrestels@riseup.net>2012-07-13 14:39:32 +0300
commit185b73174fbd39e4b47c27f19839329438b8f3c2 (patch)
treee832bff588de1b9d761b4322e192d7b8695deca9
parent25c324f5bf0f8737268c34626455a302b819651e (diff)
downloadelgg-185b73174fbd39e4b47c27f19839329438b8f3c2.tar.gz
elgg-185b73174fbd39e4b47c27f19839329438b8f3c2.tar.bz2
Refs #4004. Used $CONFIG->translations instead of elgg_echo()
-rw-r--r--engine/lib/languages.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/languages.php b/engine/lib/languages.php
index 77128202f..219917b29 100644
--- a/engine/lib/languages.php
+++ b/engine/lib/languages.php
@@ -50,7 +50,7 @@ function elgg_echo($message_key, $args = array(), $language = "") {
$string = $CONFIG->translations[$language][$message_key];
} else if (isset($CONFIG->translations["en"][$message_key])) {
$string = $CONFIG->translations["en"][$message_key];
- $lang = elgg_echo($language, array(), 'en');
+ $lang = $CONFIG->translations["en"][$language];
elgg_log(sprintf('Missing %s translation for "%s" language key', $lang, $message_key), 'NOTICE');
} else {
$string = $message_key;