Changeset 586

Show
Ignore:
Timestamp:
09/19/07 15:18:06 (1 year ago)
Author:
laurentj
Message:

fixed ticket #279: old behavior about parameters in xmlrpc and jsonrpc requests is re-enabled. If the RPC parameter is an array, its elements become a jelix parameter. However the RPC parameter is still stored in a 'params' jelix parameter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/core/request/jJsonRpcRequest.class.php

    r564 r586  
    5151            $this->jsonRequestId = $requestobj['id']; 
    5252 
     53        if(is_array($requestobj['params'])) 
     54            $this->params = $requestobj['params']; 
     55 
    5356        $this->params['params'] = $requestobj['params']; 
    5457 
  • trunk/lib/jelix/core/request/jJsonRpcRequest.class.php

    r564 r586  
    5151            $this->jsonRequestId = $requestobj['id']; 
    5252 
     53        if(is_array($requestobj['params'])) 
     54            $this->params = $requestobj['params']; 
     55 
    5356        $this->params['params'] = $requestobj['params']; 
    5457 
  • trunk/lib/jelix/core/request/jXmlRpcRequest.class.php

    r537 r586  
    4545            list($module, $action) = explode(':',$nom); 
    4646 
     47            if(count($vars) == 1 && is_array($vars[0])) 
     48                $this->params = $vars[0]; 
     49 
    4750            $this->params['params'] = $vars; 
    4851 
  • trunk/lib/jelix/core/request/jXmlRpcRequest.class.php

    r537 r586  
    4545            list($module, $action) = explode(':',$nom); 
    4646 
     47            if(count($vars) == 1 && is_array($vars[0])) 
     48                $this->params = $vars[0]; 
     49 
    4750            $this->params['params'] = $vars; 
    4851 
Download in other formats: Unified Diff Zip Archive