public function isIncludeDefaultLanguage($lang = null)
    {
        // if active lang is not passed in, use current active
        if (!$lang) {
            $lang = $this->getLanguage();
        }

        return !($this->default === $lang && $this->config->get('system.languages.include_default_lang') === false);
    }
public function isIncludeDefaultLanguage($lang = null)
    {
        // if active lang is not passed in, use current active
        if (!$lang) {
            $lang = $this->getLanguage();
        }

        return !($this->default === $lang && $this->config->get('system.languages.include_default_lang') === false);
    }
public function isIncludeDefaultLanguage ( $ lang = null ) { // if active lang is not passed in, use current active if ( ! $ lang ) { $ lang = $ this -> getLanguage ( ) ; } return ! ( $ this -> default === $ lang && $ this -> config -> get ( 'system.languages.include_default_lang' ) === false ) ; }
Test to see if language is default and language should be included in the URL

@param string|null $lang
@return bool
Test to see if language is default and language should be included in the URL