Ignore:
Timestamp:
2009/03/04 21:04:28 (15 years ago)
Author:
Seasoft
Message:

再インストール(上書きインストール)時にDBの種類を変更するとエラーで進めない不具合を修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/html/install/index.php

    r17672 r17866  
    100100    $objPage->arrErr = lfCheckDBError($objDBParam); 
    101101    if(count($objPage->arrErr) == 0) { 
     102        // 設定ファイルの生成 
     103        lfMakeConfigFile(); 
    102104        $objPage = lfDispStep3($objPage); 
    103105    } else { 
     
    136138        $skip = $_POST["db_skip"]; 
    137139        if ($skip == "on") { 
    138             // 設定ファイルの生成 
    139             lfMakeConfigFile(); 
    140140            $objPage = lfDispComplete($objPage); 
    141141            //$objPage = lfDispStep4($objPage); 
     
    194194 
    195195    if(count($objPage->arrErr) == 0) { 
    196         // 設定ファイルの生成 
    197         lfMakeConfigFile(); 
    198196        $objPage = lfDispStep3($objPage); 
    199197        $objPage->tpl_mode = 'step4'; 
     
    705703function lfCheckDBError($objFormParam) { 
    706704    global $objPage; 
    707     global $objDb; 
    708705 
    709706    // 入力データを渡す。 
     
    716713        // 接続確認 
    717714        $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name']; 
    718         define("DB_TYPE", $arrRet['db_type']); 
    719715        // Debugモード指定 
    720716        $options['debug'] = PEAR_DB_DEBUG; 
     
    722718        // 接続成功 
    723719        if(!PEAR::isError($objDB)) { 
     720            $dbFactory = SC_DB_DBFactory_Ex::getInstance(); 
    724721            // データベースバージョン情報の取得 
    725             $objPage->tpl_db_version = $objDb->sfGetDBVersion($dsn); 
     722            $objPage->tpl_db_version = $dbFactory->sfGetDBVersion($dsn); 
    726723        } else { 
    727724            $objErr->arrErr['all'] = ">> " . $objDB->message . "<br>"; 
Note: See TracChangeset for help on using the changeset viewer.