From 9f91c3fc407f785767f5851366e8bbec780b8b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AE=E3=81=B6?= Date: Tue, 7 Jan 2020 12:12:50 +0900 Subject: [PATCH] =?UTF-8?q?Composer=20is=20not=20installed.=20=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/define.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/html/define.php b/html/define.php index 2d52e33ef6..ea68a3afb0 100644 --- a/html/define.php +++ b/html/define.php @@ -12,7 +12,12 @@ * ※ IIS は、POST 時にファイル名を使用しないと不具合が発生する。(http://support.microsoft.com/kb/247536/ja) */ define('USE_FILENAME_DIR_INDEX', null); -require_once HTML_REALDIR . HTML2DATA_DIR . 'vendor/autoload.php'; + +$autoload = HTML_REALDIR . HTML2DATA_DIR . 'vendor/autoload.php'; +if (!file_exists($autoload) && !is_readable($autoload)) { + die('Composer is not installed.'); +} +require_once $autoload; // bufferを初期化する while (ob_get_level() > 0 && ob_get_level() > 0) {