protected function getUrlLanguage($locale = null)
    {
        // Check if the functionality is activated
        if (!ConfigQuery::isMultiDomainActivated()) {
            return null;
        }

        // If we don't have a locale value, use the locale value in the session
        if (!$locale) {
            $locale = $this->getCurrentEditionLocale();
        }

        return LangQuery::create()->findOneByLocale($locale)->getUrl();
    }
protected function getUrlLanguage($locale = null)
    {
        // Check if the functionality is activated
        if (!ConfigQuery::isMultiDomainActivated()) {
            return null;
        }

        // If we don't have a locale value, use the locale value in the session
        if (!$locale) {
            $locale = $this->getCurrentEditionLocale();
        }

        return LangQuery::create()->findOneByLocale($locale)->getUrl();
    }
protected function getUrlLanguage ( $ locale = null ) { // Check if the functionality is activated if ( ! ConfigQuery :: isMultiDomainActivated ( ) ) { return null ; } // If we don't have a locale value, use the locale value in the session if ( ! $ locale ) { $ locale = $ this -> getCurrentEditionLocale ( ) ; } return LangQuery :: create ( ) -> findOneByLocale ( $ locale ) -> getUrl ( ) ; }
A simple helper to get the URL based on the language.

@param  string      $locale the locale, or null to get the current one
@return null|string the URL for the current language, or null if the "One domain for each lang" feature is disabled.
A simple helper to get the URL based on the language .