From 8d363950369a22dd6087774b1bcac5e63299c43d Mon Sep 17 00:00:00 2001 From: oscarotero Date: Wed, 11 Nov 2015 10:46:53 +0100 Subject: [PATCH] fixed global functions #86 --- src/translator_functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/translator_functions.php b/src/translator_functions.php index 9339c5e0..fbb53f1f 100644 --- a/src/translator_functions.php +++ b/src/translator_functions.php @@ -75,7 +75,7 @@ function p__($context, $original) */ function d__($domain, $original) { - $text = BaseTranslator::dgettext($domain, $original); + $text = BaseTranslator::$current->dgettext($domain, $original); if (func_num_args() === 2) { return $text; @@ -97,7 +97,7 @@ function d__($domain, $original) */ function dp__($domain, $context, $original) { - $text = BaseTranslator::dpgettext($domain, $context, $original); + $text = BaseTranslator::$current->dpgettext($domain, $context, $original); if (func_num_args() === 3) { return $text; @@ -121,7 +121,7 @@ function dp__($domain, $context, $original) */ function dnp__($domain, $context, $original, $plural, $value) { - $text = BaseTranslator::dnpgettext($domain, $context, $original, $plural, $value); + $text = BaseTranslator::$current->dnpgettext($domain, $context, $original, $plural, $value); if (func_num_args() === 5) { return $text;