Changeset 462

Show
Ignore:
Timestamp:
01/13/08 16:33:04 (12 months ago)
Author:
padams
Message:

- fixed bug where config file wasnt being loaded early enough.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/owa_caller.php

    r461 r462  
    7676                $this->start_time = owa_lib::microtime_float(); 
    7777                 
     78                $file = OWA_BASE_DIR.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'owa-config.php'; 
     79                 
     80                if (file_exists($file)): 
     81                        $config_file_exists = true; 
     82                        include($file); 
     83                else: 
     84                        $this->e->debug("I can't find your configuration file...assuming that you didn't create one."); 
     85                endif; 
     86                 
    7887                // Parent Constructor. Sets default config and error logger 
    7988                $this->owa_base(); 
     
    105114                /* APPLY CONFIGURATION FILE OVERRIDES */ 
    106115                 
    107                 $file = OWA_BASE_DIR.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'owa-config.php'; 
    108                  
    109                 if (file_exists($file)): 
    110                          
    111                         include ($file); 
     116                 
     117                if ($config_file_exists == true): 
    112118                         
    113119                        /* OBJECT CACHING */ 
     
    132138                        endif; 
    133139                         
    134                 else: 
    135                         $this->e->debug("I can't find your configuration file...assuming that you didn't create one."); 
    136                 endif; 
    137                  
    138                                          
     140                endif; 
     141                         
     142                $this->e->debug('PURL: '.OWA_PUBLIC_URL);                        
    139143                /* APPLY DATABASE CONFIGURATION */ 
    140144                 
  • trunk/owa_php.php

    r425 r462  
    4646        } 
    4747         
    48         function __construct($config = null) { 
    4948         
    50                 return parent::__construct($config); 
     49        /* 
     50function __construct($config = null) { 
     51                //return; 
     52                return $this->owa_caller($config); 
    5153         
    5254        } 
     55 
     56*/ 
    5357 
    5458}