XPressME Integration Kit

Trac

Changeset 18 for trunk


Ignore:
Timestamp:
Dec 7, 2008, 11:47:46 PM (16 years ago)
Author:
toemon
Message:

add-filterをwp-setting.phpのロード前に読み込むことは出来ないので、include/xpress_action_filter.phpをwp-config.phpから読み込む方法は無理でした。
wp-setting.phpを変更せずに実現するにはプラグインからの読み込みとして実現したほうがよさそうです。

Location:
trunk
Files:
3 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/include_xoops_define.php

    r17 r18  
    4141                include_once dirname( __FILE__ ).'/../../../mainfile.php'; 
    4242        } 
     43        if (!defined("XOOPS_UPLOAD_PATH")) 
     44                define("XOOPS_UPLOAD_PATH", XOOPS_ROOT_PATH."/uploads"); 
     45        if (!defined("XOOPS_UPLOAD_URL")) 
     46                define("XOOPS_UPLOAD_URL", XOOPS_URL."/uploads"); 
    4347} else { 
    4448        // index page is load xoops 
  • trunk/wp-config.php

    r17 r18  
    3838        define('ABSPATH', dirname(__FILE__).'/'); 
    3939 
    40 require dirname( __FILE__ ).'/include/xpress_action_filter.php' ; 
    41  
    42  
    4340require_once(ABSPATH.'wp-settings.php'); 
    44  
    4541if (is_root_index_page_call()){ 
    4642        // The return to wp-blog-header.php is stolen here 
  • trunk/xoops_version.php

    r14 r18  
    3535$modversion['author'] = "toemon (http://www.toemon.com)"; 
    3636$modversion['license'] = "GPL see LICENSE"; 
    37 $modversion['official'] = 0 ; 
     37$modversion['official'] = r18 ; 
    3838$modversion['image'] =  'module_icon.php' ; 
    3939$modversion['dirname'] = $mydirname; 
Note: See TracChangeset for help on using the changeset viewer.