no-image

Ethna_UrlHandler::normalizeRequest


    // {{{ ゲートウェイリクエスト正規化
    /** 
     *  リクエスト正規化(userゲートウェイ)
     *
     *  @access private
     */
    function _normalizeRequest_Wiki($http_vars)
    {   
        $actions = array_keys($this->action_map['wiki']);
        $path_info = explode('/', $http_vars['__url_info__']);
        if ($path_info[1] == 'page') {
            return $http_vars;
        } else if (!in_array($path_info[1], $actions)) {
            $path_info[0] = 'page';
            $http_vars['__url_info__'] = "/" . implode("/", $path_info);
        }   
        return $http_vars;
    }   
    // }}}