kernel/private/classes/ezplanguageswitcher.php
protected static function addPathPrefixIfNeeded( $url )
    {
        $siteINI = eZINI::instance( 'site.ini' );
        if ( $siteINI->hasVariable( 'SiteAccessSettings', 'PathPrefix' ) )
        {
            $pathPrefix = $siteINI->variable( 'SiteAccessSettings', 'PathPrefix' );
            if ( !empty( $pathPrefix ) )
            {
                $url = $pathPrefix . '/' . $url;
            }
        }
        return $url;
    }
protected static function addPathPrefixIfNeeded( $url )
    {
        $siteINI = eZINI::instance( 'site.ini' );
        if ( $siteINI->hasVariable( 'SiteAccessSettings', 'PathPrefix' ) )
        {
            $pathPrefix = $siteINI->variable( 'SiteAccessSettings', 'PathPrefix' );
            if ( !empty( $pathPrefix ) )
            {
                $url = $pathPrefix . '/' . $url;
            }
        }
        return $url;
    }
protected static function addPathPrefixIfNeeded ( $ url ) { $ siteINI = eZINI :: instance ( 'site.ini' ) ; if ( $ siteINI -> hasVariable ( 'SiteAccessSettings' , 'PathPrefix' ) ) { $ pathPrefix = $ siteINI -> variable ( 'SiteAccessSettings' , 'PathPrefix' ) ; if ( ! empty ( $ pathPrefix ) ) { $ url = $ pathPrefix . '/' . $ url ; } } return $ url ; }
Prepend PathPrefix from the current SA to url, if applicable

@param  string $url

@return string The url with pathprefix prepended
Prepend PathPrefix from the current SA to url if applicable