Changeset 20961


Ignore:
Timestamp:
2011/05/28 17:35:29 (13 years ago)
Author:
Seasoft
Message:

#144 (郵便番号DB のアップデート)

Location:
branches/version-2_11-dev/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/Smarty/templates/admin/basis/zip_install.tpl

    r20960 r20961  
    5959            <!--{if $tpl_skip_update_csv}--> 
    6060                ご利用頂けません。 
    61                 <!--{if strlen($smarty.const.ZIP_DOWNLOAD_URL) === 0}--> 
     61                <!--{if $tpl_zip_download_url_empty}--> 
    6262                    <p class="attention">※ パラメータ ZIP_DOWNLOAD_URL が未設定です。</p> 
     63                <!--{/if}--> 
     64                <!--{if $tpl_zip_function_not_exists}--> 
     65                    <p class="attention">※ PHP 拡張モジュール「zip」が無効です。</p> 
    6366                <!--{/if}--> 
    6467            <!--{else}--> 
  • branches/version-2_11-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php

    r20960 r20961  
    103103        $this->arrErr = $objFormParam->checkError(); 
    104104        $this->arrForm = $objFormParam->getHashArray(); 
    105         $this->tpl_skip_update_csv = !defined('ZIP_DOWNLOAD_URL') || strlen(ZIP_DOWNLOAD_URL) === 0 || ZIP_DOWNLOAD_URL === false; 
     105        $this->tpl_zip_download_url_empty = !defined('ZIP_DOWNLOAD_URL') || strlen(ZIP_DOWNLOAD_URL) === 0 || ZIP_DOWNLOAD_URL === false; 
     106        $this->tpl_zip_function_not_exists = !function_exists('zip_open'); 
     107        $this->tpl_skip_update_csv = $this->tpl_zip_download_url_empty || $this->tpl_zip_function_not_exists; 
    106108 
    107109        if ($this->exec) { 
     
    394396     */ 
    395397    function lfExtractZipFile() { 
    396         if (!function_exists('zip_open')) { 
    397             SC_Utils_Ex::sfDispException('PHP 拡張モジュール「zip」を有効にしてください。'); 
    398         } 
    399  
    400398        $zip = zip_open($this->zip_csv_temp_realfile); 
    401399        if (!is_resource($zip)) { 
Note: See TracChangeset for help on using the changeset viewer.