diff --git a/phalcon/translate/adapter/gettext.zep b/phalcon/translate/adapter/gettext.zep index ffe87e63e54..9111e2eba10 100644 --- a/phalcon/translate/adapter/gettext.zep +++ b/phalcon/translate/adapter/gettext.zep @@ -84,15 +84,9 @@ class Gettext extends Adapter implements \ArrayAccess * @param string domain * @return string */ - public function query(string! index, placeholders = null) -> string + public function query(string! index, placeholders = null, string! domain = null) -> string { - var translation, domain; - - let domain = null; - - if func_num_args() > 2 { - let domain = func_get_arg(2); - } + var translation; if !domain { let translation = gettext(index);