From ea44de8698a63ed769b4c7cfe666dbeadfecca5e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 22 Jun 2014 20:09:23 +0200 Subject: [PATCH] ActionController/translate: detect domain only once --- library/Icinga/Web/Controller/ActionController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index 9d5eb1ab5..17eb39411 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -280,9 +280,7 @@ class ActionController extends Zend_Controller_Action */ public function translate($text) { - $module = $this->getRequest()->getModuleName(); - $domain = $module === 'default' ? Translator::DEFAULT_DOMAIN : $module; - return Translator::translate($text, $domain); + return Translator::translate($text, $this->view->translationDomain); } protected function ignoreXhrBody()