XPressME Integration Kit

Trac

Changeset 132


Ignore:
Timestamp:
Mar 22, 2009, 1:46:25 AM (15 years ago)
Author:
toemon
Message:

ImpressCMSで投稿すると、イベント通知するためにXOOPSをロードしたところで
Fatal error: Call to a member function prefix() on a non-object in C:\xampp\htdocs\impress\kernel\configitem.php on line 331のエラーが、
しょうがないので wp-admin/post.phpの場合は事前にXOOPSをロードするようにしてみた。
予約投稿は問題ないみたいだけれど、もいっかいイベント通知の確認しないと駄目かも

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/request_url.php

    r96 r132  
    4040} 
    4141 
     42function is_admin_post_call(){ 
     43        return check_page_call('wp-admin/post.php'); 
     44} 
     45 
    4246function is_xmlrpc_call(){ 
    4347        $ret =  check_page_call('xmlrpc.php'); 
  • trunk/wp-config.php

    r96 r132  
    9898        exit();         // The return to wp-blog-header.php is stolen here 
    9999} 
     100if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    100101require_once(ABSPATH.'wp-settings.php'); 
    101102?> 
  • trunk/wp-content/plugins/xpressme/include/notify_functions.php

    r96 r132  
    4949        } 
    5050//      set_error_handler("xpress_error_handler"); 
    51         require $xoops_config->xoops_mainfile_path;     // load XOOPS System 
     51        require_once $xoops_config->xoops_mainfile_path;        // load XOOPS System 
    5252        $module_id = get_xpress_modid() ; 
    5353        $notification_handler =& xoops_gethandler( 'notification' ) ; 
Note: See TracChangeset for help on using the changeset viewer.