diff --git a/_common.php b/_common.php index 9969c3802..9dfa8b4d8 100644 --- a/_common.php +++ b/_common.php @@ -2,7 +2,7 @@ include_once('./common.php'); // 커뮤니티 사용여부 -if(G5_COMMUNITY_USE === false) { +if(defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) { if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) die('
쇼핑몰 설치 후 이용해 주십시오.
'); diff --git a/adm/theme_preview.php b/adm/theme_preview.php index dd5467d4a..9255dc179 100644 --- a/adm/theme_preview.php +++ b/adm/theme_preview.php @@ -15,7 +15,7 @@ $mode = substr(strip_tags($_GET['mode']), 0, 20); if(!in_array($mode, $arr_mode)) $mode = 'index'; -if(G5_COMMUNITY_USE === false || $mode == 'shop' || $mode == 'ca_list' || $mode == 'item') +if((defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) || $mode == 'shop' || $mode == 'ca_list' || $mode == 'item') define('_SHOP_', true); $qstr_index = '&mode=index'; @@ -150,7 +150,7 @@ require_once(G5_PATH.'/head.sub.php');쇼핑몰 설치 후 이용해 주십시오.
'); diff --git a/head.php b/head.php index ab536b366..2962b39c1 100644 --- a/head.php +++ b/head.php @@ -46,7 +46,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');