#181 page, opage 모듈에서는 '작성글 보기'메뉴를 출력하지 않도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2684 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2007-10-07 17:19:11 +00:00
parent ff17cebf52
commit f16e2c17e8

View file

@ -29,6 +29,10 @@
$logged_info = Context::get('logged_info');
$act = Context::get('cur_act');
// 호출된 모듈의 정보 구함
$oModuleModel = &getModel('module');
$cur_module_info = $oModuleModel->getModuleInfoByMid($mid);
// 자신의 아이디를 클릭한 경우
if($member_srl == $logged_info->member_srl) {
$member_info = $logged_info;
@ -63,7 +67,7 @@
}
// 게시판이나 블로그등일 경우는 특별 옵션 지정
if($mid && !ereg('Member', $act)) {
if($mid && !ereg('Member', $act) && !in_array($cur_module_info->module, array('page', 'opage'))) {
// 아이디로 검색
$menu_str = Context::getLang('cmd_view_own_document');
$menu_url = sprintf('./?mid=%s&search_target=user_id&search_keyword=%s', $mid, $user_id);