Changeset 535

Show
Ignore:
Timestamp:
05/08/08 16:03:10 (3 months ago)
Author:
sidtheduck
Message:

- Fix for ticket #158

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/plogger/install_functions.php

    r533 r535  
    104104                        ); 
    105105                                 
    106                         $conf = create_config_file($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name'],$form['ftp_host'],$form['ftp_user'],$form['ftp_pass'],$form['ftp_path']); 
     106                        if (ini_get('safe_mode')==1) { 
     107                                $conf = create_config_file($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name'],$form['ftp_host'],$form['ftp_user'],$form['ftp_pass'],$form['ftp_path']); 
     108                        } else { 
     109                                $conf = create_config_file($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name']); 
     110                        } 
    107111                        // if configuration file is writable, then set the values 
    108112                        // otherwise serve the config file to user and ask her to