source/Core/Language.php
protected function _getCacheLanguageId($blAdmin, $iLang = null)
    {
        $iLang = ($iLang === null && $blAdmin) ? $this->getTplLanguage() : $iLang;
        if (!isset($iLang)) {
            $iLang = $this->getBaseLanguage();
            if (!isset($iLang)) {
                $iLang = 0;
            }
        }

        return (int) $iLang;
    }
protected function _getCacheLanguageId($blAdmin, $iLang = null)
    {
        $iLang = ($iLang === null && $blAdmin) ? $this->getTplLanguage() : $iLang;
        if (!isset($iLang)) {
            $iLang = $this->getBaseLanguage();
            if (!isset($iLang)) {
                $iLang = 0;
            }
        }

        return (int) $iLang;
    }
protected function _getCacheLanguageId ( $ blAdmin , $ iLang = null ) { $ iLang = ( $ iLang === null && $ blAdmin ) ? $ this -> getTplLanguage ( ) : $ iLang ; if ( ! isset ( $ iLang ) ) { $ iLang = $ this -> getBaseLanguage ( ) ; if ( ! isset ( $ iLang ) ) { $ iLang = 0 ; } } return ( int ) $ iLang ; }
Returns current language cache language id

@param bool $blAdmin admin mode
@param int  $iLang   language id [optional]

@return int
Returns current language cache language id