mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Do NOT fetch the translation domain from the request in Form::translate(..)
It might be the case that a module is using a library form... refs #7551
This commit is contained in:
parent
cf43b81400
commit
6d263ae316
@ -808,6 +808,9 @@ class Form extends Zend_Form
|
||||
/**
|
||||
* Return the translation domain for this form
|
||||
*
|
||||
* The returned translation domain is either determined based on
|
||||
* this form's class path or it is the default `icinga' domain
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getTranslationDomain()
|
||||
@ -816,7 +819,7 @@ class Form extends Zend_Form
|
||||
return strtolower($matches[0]);
|
||||
}
|
||||
|
||||
return $this->getRequest()->getModuleName();
|
||||
return 'icinga';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user