XPressME Integration Kit

Trac


Ignore:
Timestamp:
Sep 12, 2009, 10:35:47 AM (15 years ago)
Author:
toemon
Message:

インストール・アップデート失敗時の中断処理追加 fixed #204

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/onupdate.php

    r352 r384  
    1515                $root =& XCube_Root::getSingleton(); 
    1616                $root->mDelegateManager->add( 'Legacy.Admin.Event.ModuleUpdate.' . ucfirst($mydirname) . '.Success', 'xpress_message_append_onupdate' ) ; 
     17                $root->mDelegateManager->add( 'Legacy.Admin.Event.ModuleUpdate.' . ucfirst($mydirname) . '.Fail', 'xpress_message_append_onupdate' ) ; 
    1718                $msgs = array() ; 
    1819        } else { 
     
    2223        $db =& Database::getInstance() ; 
    2324        $mid = $module->getVar('mid') ; 
     25         
     26 
    2427 
    2528//XPressME Update 
     
    2831        $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    2932        $path = $mydirpath . '/'; 
    30          
     33 
     34// permission and wordpress files check 
     35        require_once ($path . 'include/pre_check.php'); 
     36        if(! xp_permission_check($mydirname, $mydirpath)){ 
     37                $msgs = $GLOBALS["err_log"]; 
     38                return false; 
     39        } 
     40 
    3141//Site_url and home of an optional table are repaired.  
    3242        $site_url= XOOPS_URL."/modules/".$mydirname; 
Note: See TracChangeset for help on using the changeset viewer.