Ignore:
Timestamp:
2012/09/20 19:59:27 (12 years ago)
Author:
h_yoshimoto
Message:

#1944 プラグイン管理リファクタリング

File:
1 edited

Legend:

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

    r22034 r22036  
    7373        $this->initParam($objFormParam, $mode); 
    7474        $objFormParam->setParam($_POST); 
    75  
    76         $mode = $this->getMode(); 
    7775 
    7876        switch ($mode) { 
     
    150148                $this->arrErr = $objFormParam->checkError(); 
    151149                if ($this->isError($this->arrErr) === false) { 
    152                     $target_plugin_code = $objFormParam->getValue('plugin_code'); // アップデート対象のプラグインコード 
     150                    $plugin_id = $objFormParam->getValue('plugin_id'); 
     151                    $plugin = SC_Plugin_Util_Ex::getPluginByPluginId($plugin_id); 
     152                    $target_plugin_code = $plugin['plugin_code']; // アップデート対象のプラグインコード 
    153153                    $this->arrErr = $this->checkUploadFile($target_plugin_code); 
    154154 
     
    227227        $objFormParam->addParam('mode', 'mode', INT_LEN, '', array('ALPHA_CHECK', 'MAX_LENGTH_CHECK')); 
    228228        $objFormParam->addParam('plugin_id', 'plugin_id', INT_LEN, '', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    229         $objFormParam->addParam('plugin_code', 'plugin_code', MTEXT_LEN, '', array('ALNUM_CHECK', 'MAX_LENGTH_CHECK')); 
    230229        if ($mode === 'priority') { 
    231230            $objFormParam->addParam('優先度', 'priority', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
Note: See TracChangeset for help on using the changeset viewer.