source/Core/UtilsUrl.php
public function isCurrentShopHost($sUrl)
    {
        $blCurrent = false;
        $sUrlHost = @parse_url($sUrl, PHP_URL_HOST);
        // checks if it is relative url.
        if (is_null($sUrlHost)) {
            $blCurrent = true;
        } else {
            $aHosts = $this->_getHosts();

            foreach ($aHosts as $sHost) {
                if ($sHost === $sUrlHost) {
                    $blCurrent = true;
                    break;
                }
            }
        }

        return $blCurrent;
    }
public function isCurrentShopHost($sUrl)
    {
        $blCurrent = false;
        $sUrlHost = @parse_url($sUrl, PHP_URL_HOST);
        // checks if it is relative url.
        if (is_null($sUrlHost)) {
            $blCurrent = true;
        } else {
            $aHosts = $this->_getHosts();

            foreach ($aHosts as $sHost) {
                if ($sHost === $sUrlHost) {
                    $blCurrent = true;
                    break;
                }
            }
        }

        return $blCurrent;
    }
public function isCurrentShopHost ( $ sUrl ) { $ blCurrent = false ; $ sUrlHost = @ parse_url ( $ sUrl , PHP_URL_HOST ) ; // checks if it is relative url. if ( is_null ( $ sUrlHost ) ) { $ blCurrent = true ; } else { $ aHosts = $ this -> _getHosts ( ) ; foreach ( $ aHosts as $ sHost ) { if ( $ sHost === $ sUrlHost ) { $ blCurrent = true ; break ; } } } return $ blCurrent ; }
Compares current URL to supplied string.

@param string $sUrl

@return bool true if $sUrl is equal to current page URL.
Compares current URL to supplied string .