Changeset 17973

Show
Ignore:
Timestamp:
10/06/08 15:49:23 (2 months ago)
Author:
piotras
Message:

Fix static dir creation

Files:

Legend:

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

    r17902 r17973  
    2727    private $midcom_channel_alias; 
    2828    private $midcom_channel_url; 
    29     private $midcom_static_dir
     29    private $midcom_static_dir = null
    3030    private $midcom_channel_base; 
    3131    private $pearified_channel; 
     
    142142        if($this->web_dir_hack === null) 
    143143        { 
    144             return; 
    145         } 
    146         /* we can not use isDefined method as it always returns true */ 
    147         /* let's get key's value and return if it's empty, false or null */ 
    148         /*if(($this->pear_config->get("web_dir") === '') 
    149             || ($this->pear_config->get("web_dir") === false) 
    150             || ($this->pear_config->get("web_dir") === null))  
    151         {  
    152             return; 
    153         } 
    154         */ 
     144            /* we can not use isDefined method as it always returns true */ 
     145            /* let's get key's value and return if it's empty, false or null */ 
     146            if(($this->pear_config->get("web_dir") === '') 
     147                || ($this->pear_config->get("web_dir") === false) 
     148                || ($this->pear_config->get("web_dir") === null))  
     149            {  
     150                return; 
     151            } 
     152 
     153            $this->web_dir_hack = $this->pear_config->get("web_dir"); 
     154        } 
    155155 
    156156        $this->initial_web_dir = $this->web_dir_hack; 
     
    205205            return $this->pear_config->get('web_dir'); 
    206206        } 
     207 
    207208        return $this->midcom_static_dir; 
    208209    }