Changeset 7854 for sandbox


Ignore:
Timestamp:
02/05/13 15:02:39 (11 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Correções dentro da API do webservice do expresso

Location:
sandbox/webservice/api/adapters
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/adapters/AdminAdapter.php

    r7845 r7854  
    6767 
    6868                                unset( $default['groups_user'] ); 
    69  
    70                                 // Context 
    71                                 $context = explode(".", $params['profileUser'] ); 
    72                                 $default['context'] = "ou=".$context[1].",".$default['context']; 
    7369                        } 
    7470                } 
     
    189185                $default = false; 
    190186 
    191                 if( file_exists( __DIR__ . '/../config/profileCreateUser.ini') ) 
    192                 { 
    193                         $profiles = parse_ini_file( __DIR__ . '/../config/profileCreateUser.ini', true ); 
     187                if( file_exists(API_DIRECTORY.'/../config/profileCreateUser.ini') ) 
     188                { 
     189                        $profiles = parse_ini_file(API_DIRECTORY.'/../config/profileCreateUser.ini', true ); 
    194190                         
    195191                        foreach( $profiles as $key => $values ) 
  • sandbox/webservice/api/adapters/ExpressoAdapter.php

    r7846 r7854  
    151151        protected function getUserApps(){ 
    152152                // Load Granted Apps for Web Service 
    153                 $config = parse_ini_file( __DIR__ . '/../config/user.ini',true); 
     153                $config = parse_ini_file( API_DIRECTORY . '/../config/user.ini',true); 
    154154                $apps   = $config['Applications.mapping']; 
    155155         
Note: See TracChangeset for help on using the changeset viewer.