Hello, please help, for some reason on some pages does not correctly output the current locale function osc_locale_code(), for example, on the page of ads always outputs En locale, although installed another, on other pages all works correctly. If in the file oc-includes/osclass/controller/item.php remove this code
$locales = OSCLocale::newInstance()->listAllEnabled();
$this->_exportVariableToView('locales', $locales);
Then the osc_locale_code() function starts working correctly. Question, what could be the problem and why does this code affect this function? How to fix it? Thank you very much!