private function getHostname()
    {
        $host = parse_url($this->config->get('psx_url'), PHP_URL_HOST);
        if (empty($host)) {
            $host = $_SERVER['SERVER_NAME'];
        }

        return $host;
    }
private function getHostname()
    {
        $host = parse_url($this->config->get('psx_url'), PHP_URL_HOST);
        if (empty($host)) {
            $host = $_SERVER['SERVER_NAME'];
        }

        return $host;
    }
private function getHostname ( ) { $ host = parse_url ( $ this -> config -> get ( 'psx_url' ) , PHP_URL_HOST ) ; if ( empty ( $ host ) ) { $ host = $ _SERVER [ 'SERVER_NAME' ] ; } return $ host ; }
Tries to determine the current hostname

@return string
Tries to determine the current hostname