Ignore:
Timestamp:
2008/03/17 17:23:37 (16 years ago)
Author:
adachi
Message:

パッチ内の更新ファイルを実行できるように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/upgrade/LC_Page_Upgrade_Download.php

    r16932 r17160  
    213213            $this->registerUpdateLog($arrCopyLog, $objRet->data); 
    214214 
    215             if ($mode != 'patch_download') { 
    216                 // dtb_moduleの更新 
    217                 $objLog->log("* insert/update dtb_module start"); 
    218                 $this->updateMdlTable($objRet->data); 
    219             } 
     215            // dtb_moduleの更新 
     216            $objLog->log("* insert/update dtb_module start"); 
     217            $this->updateMdlTable($objRet->data); 
     218 
     219            // DB更新ファイルの読み込み、実行 
     220            $objLog->log("* file execute start"); 
     221            $this->fileExecute(); 
    220222 
    221223            // 配信サーバへ通知 
     
    370372        $objQuery->insert('dtb_module_update_logs', $arrInsert); 
    371373    } 
     374 
     375    /** 
     376     * DB更新ファイルの読み込み、実行 
     377     * 
     378     * パッチ側でupdate.phpを用意する. 
     379     * 他の変数・関数とかぶらないよう、 
     380     * LC_Update_Updater::execute()で処理を実行する. 
     381     */ 
     382    function fileExecute() { 
     383        $file = DATA_PATH . 'downloads/update/update.php'; 
     384        if (file_exists($file)) { 
     385            @include_once $file; 
     386            if (class_exists('LC_Update_Updater')) { 
     387                $update = new LC_Update_Updater; 
     388                $update->execute(); 
     389            } 
     390        } 
     391    } 
    372392} 
    373393?> 
Note: See TracChangeset for help on using the changeset viewer.