Changeset 20961
- Timestamp:
- 2011/05/28 17:35:29 (13 years ago)
- 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 59 59 <!--{if $tpl_skip_update_csv}--> 60 60 ご利用頂けません。 61 <!--{if strlen($smarty.const.ZIP_DOWNLOAD_URL) === 0}-->61 <!--{if $tpl_zip_download_url_empty}--> 62 62 <p class="attention">※ パラメータ ZIP_DOWNLOAD_URL が未設定です。</p> 63 <!--{/if}--> 64 <!--{if $tpl_zip_function_not_exists}--> 65 <p class="attention">※ PHP 拡張モジュール「zip」が無効です。</p> 63 66 <!--{/if}--> 64 67 <!--{else}--> -
branches/version-2_11-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php
r20960 r20961 103 103 $this->arrErr = $objFormParam->checkError(); 104 104 $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; 106 108 107 109 if ($this->exec) { … … 394 396 */ 395 397 function lfExtractZipFile() { 396 if (!function_exists('zip_open')) {397 SC_Utils_Ex::sfDispException('PHP 拡張モジュール「zip」を有効にしてください。');398 }399 400 398 $zip = zip_open($this->zip_csv_temp_realfile); 401 399 if (!is_resource($zip)) {
Note: See TracChangeset
for help on using the changeset viewer.