WebUtil.php에서 drawMenu fallback 추가. 설치시 '활성화되지 않은' KakaoKey.php 파일 추가
This commit is contained in:
@@ -263,6 +263,14 @@ $result = Util::generateFileUsingSimpleTemplate(
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Util::generateFileUsingSimpleTemplate(
|
||||||
|
__dir__.'/templates/KakaoKey.orig.php',
|
||||||
|
ROOT.'/d_setting/KakaoKey.php',
|
||||||
|
[
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
if ($result !== true) {
|
if ($result !== true) {
|
||||||
Json::die([
|
Json::die([
|
||||||
'result'=>false,
|
'result'=>false,
|
||||||
|
|||||||
@@ -137,6 +137,9 @@ class WebUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function drawMenu(string $path): string{
|
public static function drawMenu(string $path): string{
|
||||||
|
if(!file_exists($path)){
|
||||||
|
return '';
|
||||||
|
}
|
||||||
$json = Json::decode(file_get_contents($path));
|
$json = Json::decode(file_get_contents($path));
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user