불필요한 PHP 5.1 이하 코드 삭제

json_encode, json_decode 는 PHP 5.2 부터 PHP 코어에 내장되어있습니다.
https://php-legacy-docs.zend.com/manual/php5/en/json.requirements
https://php-legacy-docs.zend.com/manual/php5/en/book.json
This commit is contained in:
kit rio
2022-06-03 11:00:02 +09:00
committed by thisgun
parent 068c8818f8
commit fc43e26c14
12 changed files with 58 additions and 145 deletions

View File

@ -1,7 +1,6 @@
<?php
$sub_menu = "100280";
include_once('./_common.php');
include_once(G5_LIB_PATH.'/json.lib.php');
$data = array();
$data['error'] = '';
@ -182,4 +181,4 @@ if($type == 'board') {
$data['error'] = '적용할 테마 설정이 없습니다.';
}
die(json_encode($data));
die(json_encode($data));