Skip to content

Commit

Permalink
adm/view.php 파일에서 $sub_menu 등 변수 위치를 변경
Browse files Browse the repository at this point in the history
`$sub_menu`, `$g5['title']` 변수를 생성처리가 `admin_request_handler_*` Event Hook 보다 이후에 실행되어 해당 Hook에서 이를 활용하지 못하는 문제를 해결합니다.
  • Loading branch information
kkigomi committed Jul 26, 2023
1 parent 6416560 commit 4735d62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adm/view.php
Expand Up @@ -16,13 +16,13 @@
}
}

run_event('admin_request_handler_'.$call, $arr_query, $token);

$sub_menu = admin_menu_find_by($call, 'sub_menu');
$g5['title'] = admin_menu_find_by($call, 'title');

run_event('admin_request_handler_'.$call, $arr_query, $token);

include_once ('./admin.head.php');

run_event('admin_get_page_'.$call, $arr_query, $token);

include_once ('./admin.tail.php');
include_once ('./admin.tail.php');

0 comments on commit 4735d62

Please sign in to comment.