public function base($exclude_langcode = false)
    {
        $base = GC_BASE;

        if ($base !== '/') {
            $base .= '/';
        }

        if (!empty($this->langcode)) {
            $suffix = "{$this->langcode}/";
            $base .= $suffix;
        }

        if ($exclude_langcode && !empty($suffix)) {
            $base = substr($base, 0, -strlen($suffix));
        }

        return $base;
    }
public function base($exclude_langcode = false)
    {
        $base = GC_BASE;

        if ($base !== '/') {
            $base .= '/';
        }

        if (!empty($this->langcode)) {
            $suffix = "{$this->langcode}/";
            $base .= $suffix;
        }

        if ($exclude_langcode && !empty($suffix)) {
            $base = substr($base, 0, -strlen($suffix));
        }

        return $base;
    }
public function base ( $ exclude_langcode = false ) { $ base = GC_BASE ; if ( $ base !== '/' ) { $ base .= '/' ; } if ( ! empty ( $ this -> langcode ) ) { $ suffix = "{$this->langcode}/" ; $ base .= $ suffix ; } if ( $ exclude_langcode && ! empty ( $ suffix ) ) { $ base = substr ( $ base , 0 , - strlen ( $ suffix ) ) ; } return $ base ; }
Returns the current base path
@param boolean $exclude_langcode
@return string
Returns the current base path