Ignore:
Timestamp:
2012/05/19 12:19:49 (12 years ago)
Author:
h_yoshimoto
Message:

#1813 アンインストール時に無効処理(disable)も実行する

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore.php

    r21829 r21842  
    7373        $this->initParam($objFormParam, $mode); 
    7474        $objFormParam->setParam($_POST); 
    75  
     75  
    7676        $mode = $this->getMode(); 
    7777 
     
    607607            return $arrErr; 
    608608        } 
    609  
     609         
     610        // プラグインが有効な場合に無効化処理を実行 
     611        if($plugin['enable'] == PLUGIN_ENABLE_TRUE){ 
     612            // 無効化処理を実行します. 
     613            $arrErr = $this->execPlugin($plugin, $plugin['class_name'], 'disable'); 
     614            if ($this->isError($arrErr) === true) { 
     615                return $arrErr; 
     616            } 
     617            // プラグインを無効にします. 
     618            $this->updatePluginEnable($plugin['plugin_id'], PLUGIN_ENABLE_FALSE); 
     619        } 
     620         
     621        // アンインストール処理を実行します. 
    610622        $arrErr = $this->execPlugin($plugin, $plugin['class_name'], 'uninstall'); 
    611623        if ($this->isError($arrErr) === true) { 
Note: See TracChangeset for help on using the changeset viewer.