From 8e20f80cd29816c70031d45b9ef47c966e49156c Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 10 May 2013 16:34:50 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=B9=98=EC=8B=9C=20=EB=B3=80?= =?UTF-8?q?=EC=88=98=EC=84=A0=EC=96=B8=20notice=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index eb8e86cc3..7870b3354 100644 --- a/config.php +++ b/config.php @@ -57,9 +57,18 @@ define('G4_SYNDI_DIR', 'syndi'); if (G4_DOMAIN) { define('G4_URL', G4_DOMAIN); } else { - define('G4_URL', $g4_path['url']); + if (isset($g4_path['url'])) { + define('G4_URL', $g4_path['url']); + } else { + define('G4_URL', ''); + } +} + +if (isset($g4_path['path'])) { + define('G4_PATH', $g4_path['path']); +} else { + define('G4_PATH', ''); } -define('G4_PATH', $g4_path['path']); define('G4_ADMIN_URL', G4_URL.'/'.G4_ADMIN_DIR); define('G4_BBS_URL', G4_URL.'/'.G4_BBS_DIR);