Ignore:
Timestamp:
2008/03/12 20:56:44 (16 years ago)
Author:
adachi
Message:

モジュールファイル読み込み処理の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/include/module.inc

    r17125 r17138  
    2222 */ 
    2323 
    24 if (!defined('ECCUBE_INSTALLE')) { 
     24if (!defined('ECCUBE_INSTALL')) { 
    2525    return; 
    2626} 
     
    4444/** 
    4545 * インクルードするモジュールの一覧 
    46  * XXX dtb_moduleとかに保持したい... 
     46 * FIXME dtb_moduleとかに保持する 
    4747 */ 
    4848$_arrModule = array( 
     
    5959    foreach ($_arrModuleCode as $_moduleCode) { 
    6060        $_file = MODULE_PATH . "$_moduleCode/include.php"; 
    61         if (isset($_arrModule[$_moduleCode]) && file_exists($_file)) { 
     61        if (in_array($_moduleCode, $_arrModule) && file_exists($_file)) { 
    6262            include_once($_file); 
    6363        } 
Note: See TracChangeset for help on using the changeset viewer.