source/Core/Language.php
public function getObjectTplLanguage()
    {
        if ($this->_iObjectTplLanguageId === null) {
            $this->_iObjectTplLanguageId = $this->getTplLanguage();

            if ($this->isAdmin()) {
                $aLanguages = $this->getAdminTplLanguageArray();
                if (!isset($aLanguages[$this->_iObjectTplLanguageId]) ||
                    $aLanguages[$this->_iObjectTplLanguageId]->active == 0
                ) {
                    $this->_iObjectTplLanguageId = key($aLanguages);
                }
            }
        }

        return $this->_iObjectTplLanguageId;
    }
public function getObjectTplLanguage()
    {
        if ($this->_iObjectTplLanguageId === null) {
            $this->_iObjectTplLanguageId = $this->getTplLanguage();

            if ($this->isAdmin()) {
                $aLanguages = $this->getAdminTplLanguageArray();
                if (!isset($aLanguages[$this->_iObjectTplLanguageId]) ||
                    $aLanguages[$this->_iObjectTplLanguageId]->active == 0
                ) {
                    $this->_iObjectTplLanguageId = key($aLanguages);
                }
            }
        }

        return $this->_iObjectTplLanguageId;
    }
public function getObjectTplLanguage ( ) { if ( $ this -> _iObjectTplLanguageId === null ) { $ this -> _iObjectTplLanguageId = $ this -> getTplLanguage ( ) ; if ( $ this -> isAdmin ( ) ) { $ aLanguages = $ this -> getAdminTplLanguageArray ( ) ; if ( ! isset ( $ aLanguages [ $ this -> _iObjectTplLanguageId ] ) || $ aLanguages [ $ this -> _iObjectTplLanguageId ] -> active == 0 ) { $ this -> _iObjectTplLanguageId = key ( $ aLanguages ) ; } } } return $ this -> _iObjectTplLanguageId ; }
Returns language id used to load objects according to current template language

@return int
Returns language id used to load objects according to current template language