WebUtil.php에서 drawMenu fallback 추가. 설치시 '활성화되지 않은' KakaoKey.php 파일 추가

This commit is contained in:
2018-09-23 17:31:30 +09:00
parent 32e3dcff7c
commit ca1d8aab84
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -263,6 +263,14 @@ $result = Util::generateFileUsingSimpleTemplate(
]
);
Util::generateFileUsingSimpleTemplate(
__dir__.'/templates/KakaoKey.orig.php',
ROOT.'/d_setting/KakaoKey.php',
[
],
true
);
if ($result !== true) {
Json::die([
'result'=>false,
+3
View File
@@ -137,6 +137,9 @@ class WebUtil
}
public static function drawMenu(string $path): string{
if(!file_exists($path)){
return '';
}
$json = Json::decode(file_get_contents($path));
$result = [];