Ignore:
Timestamp:
2012/05/25 17:25:07 (12 years ago)
Author:
h_yoshimoto
Message:

#1823 プラグインのロゴがない場合に「NO IMAGE」画像を表示

File:
1 edited

Legend:

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

    r21848 r21854  
    191191        // DBからプラグイン情報を取得 
    192192        $plugins = SC_Plugin_Util_Ex::getAllPlugin(); 
    193  
     193         
    194194        foreach ($plugins as $key => $plugin) { 
     195            // ロゴファイルへのパスを生成(ロゴが無い場合はNO_IMAGEを表示) 
     196            if(file_exists(PLUGIN_HTML_REALDIR . $plugins[$key]['plugin_code'] . "/logo.png") === true){ 
     197                $plugins[$key]['logo'] = ROOT_URLPATH . "plugin/" . $plugins[$key]['plugin_code'] . "/logo.png"; 
     198            } else { 
     199                $plugins[$key]['logo'] = IMAGE_SAVE_URLPATH . "noimage_plugin_list.gif"; 
     200            } 
     201             
    195202            // 設定ファイルがあるかを判定. 
    196203            $plugins[$key]['config_flg'] = $this->isContainsFile(PLUGIN_UPLOAD_REALDIR . $plugin['plugin_code'], 'config.php'); 
Note: See TracChangeset for help on using the changeset viewer.