From e1f311b54fe57676070914beca79db62e3f8aac9 Mon Sep 17 00:00:00 2001 From: j3nsch Date: Wed, 30 Oct 2024 21:50:55 +0100 Subject: [PATCH] #1251 Fix getting Application_Translate --- library/Application/View/Helper/TranslateWithDefault.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Application/View/Helper/TranslateWithDefault.php b/library/Application/View/Helper/TranslateWithDefault.php index 546cff4e9..ebecf679d 100644 --- a/library/Application/View/Helper/TranslateWithDefault.php +++ b/library/Application/View/Helper/TranslateWithDefault.php @@ -44,7 +44,7 @@ class Application_View_Helper_TranslateWithDefault extends Zend_View_Helper_Abst */ public function translateWithDefault($messageId, $default = '') { - $translator = Configuration::getInstance()->getTranslate(); + $translator = Application_Translate::getInstance()(); if ($translator->isTranslated($messageId)) { return $translator->translate($messageId);