Changeset 17896

Show
Ignore:
Timestamp:
10/03/08 16:00:43 (2 months ago)
Author:
piotras
Message:

Fix #311

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/branch-1-9/midgard/data/midgard/setup/php/midgard_setup_pear.php

    r17834 r17896  
    4040    private $pear_dir; 
    4141    private $web_dir; 
     42    private $web_dir_hack = null; 
    4243 
    4344    private $pear_ui; 
     
    139140    private function set_midcom_static() 
    140141    { 
     142        if($this->web_dir_hack === null) 
     143        { 
     144            return; 
     145        } 
    141146        /* we can not use isDefined method as it always returns true */ 
    142147        /* let's get key's value and return if it's empty, false or null */ 
    143         if(($this->pear_config->get("web_dir") === '') 
     148        /*if(($this->pear_config->get("web_dir") === '') 
    144149            || ($this->pear_config->get("web_dir") === false) 
    145150            || ($this->pear_config->get("web_dir") === null))  
    146         { 
     151        {  
    147152            return; 
    148153        } 
    149  
    150         $this->initial_web_dir = $this->pear_config->get('web_dir'); 
     154        */ 
     155 
     156        $this->initial_web_dir = $this->web_dir_hack; 
    151157 
    152158        if(!strstr($this->initial_web_dir, 'midcom')) 
     
    160166        } 
    161167 
    162         $set = $this->pear_config->set('web_dir', $this->midcom_static_dir, 'user'); 
     168        midgard_setup_ui_cli::message("Setting midcom static dir" . $this->midcom_static_dir); 
     169         
     170        $set = $this->pear_config->set('web_dir', $this->midcom_static_dir); 
    163171 
    164172        if(!$set)  
     
    167175        /* write configuration */ 
    168176        $this->pear_config->writeConfigFile(); 
     177        /* "reload" configuration */ 
     178        $this->pear_config->readConfigFile(); 
    169179    } 
    170180 
     
    228238        $this->install_pearified_base_package("Role_Web"); 
    229239        midgard_setup_pear::reload_roles(&$this->pear_config); 
     240       
     241        $this->web_dir_hack = $this->pear_config->configuration_info['web_dir']['default']; 
    230242 
    231243        $this->set_midcom_static();      
  • branches/branch-1-9/midgard/data/midgard/setup/php/midgard_setup_pear_packages

    r17826 r17896  
    22# If needed, add one package per line 
    33 
     4midcom 
    45midcom_helper_datamanager2  
    56org_openpsa_httplib