Skip to content
Snippets Groups Projects
Commit 00a789af authored by Demian Katz's avatar Demian Katz
Browse files

Simplify translator access.

parent 3da10733
No related merge requests found
...@@ -188,7 +188,7 @@ class Params extends \VuFind\Search\Base\Params ...@@ -188,7 +188,7 @@ class Params extends \VuFind\Search\Base\Params
$backendParams->set('didYouMean', $options->spellcheckEnabled()); $backendParams->set('didYouMean', $options->spellcheckEnabled());
// Get the language setting: // Get the language setting:
$lang = $this->getServiceLocator()->get('VuFind\Translator')->getLocale(); $lang = $this->getOptions()->getTranslator()->getLocale();
$backendParams->set('language', substr($lang, 0, 2)); $backendParams->set('language', substr($lang, 0, 2));
if ($options->highlightEnabled()) { if ($options->highlightEnabled()) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment