Changeset 384 for trunk/xpressme_integration_kit/include/onupdate.php
- Timestamp:
- Sep 12, 2009, 10:35:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/onupdate.php
r352 r384 15 15 $root =& XCube_Root::getSingleton(); 16 16 $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' ) ; 17 18 $msgs = array() ; 18 19 } else { … … 22 23 $db =& Database::getInstance() ; 23 24 $mid = $module->getVar('mid') ; 25 26 24 27 25 28 //XPressME Update … … 28 31 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 29 32 $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 31 41 //Site_url and home of an optional table are repaired. 32 42 $site_url= XOOPS_URL."/modules/".$mydirname;
Note: See TracChangeset
for help on using the changeset viewer.