diff --git a/classes/module/ModuleHandler.class.php b/classes/module/ModuleHandler.class.php index 741984114..ab81808ff 100644 --- a/classes/module/ModuleHandler.class.php +++ b/classes/module/ModuleHandler.class.php @@ -402,6 +402,10 @@ class ModuleHandler extends Handler { $oModule = $class_fullname::getInstance(); } + else + { + return self::_createErrorMessage(-1, 'msg_module_class_not_found', 404); + } } elseif($type == "view" && $this->is_mobile && Context::isInstalled()) { @@ -514,6 +518,10 @@ class ModuleHandler extends Handler { $oModule = $class_fullname::getInstance(); } + else + { + return self::_createErrorMessage(-1, 'msg_module_class_not_found', 404); + } } elseif($type == "view" && $this->is_mobile) { diff --git a/common/lang/en.php b/common/lang/en.php index 3445593e3..006f62e5d 100644 --- a/common/lang/en.php +++ b/common/lang/en.php @@ -249,6 +249,7 @@ $lang->msg_invalid_format = 'Invalid Format'; $lang->msg_not_permitted_act = 'You do not have permission to execute requested action.'; $lang->msg_module_is_not_exists = 'Cannot find the page you requested. Ask your Site Admin to check the page.'; $lang->msg_module_is_not_standalone = 'Requested page cannot be executed independently.'; +$lang->msg_module_class_not_found = 'Cannot find class to handle the requested action.'; $lang->msg_empty_search_target = 'Cannot find the Search target.'; $lang->msg_empty_search_keyword = 'Cannot find the Keyword.'; $lang->msg_empty_content = 'The content is empty.'; diff --git a/common/lang/ko.php b/common/lang/ko.php index f700247da..713b7c045 100644 --- a/common/lang/ko.php +++ b/common/lang/ko.php @@ -251,6 +251,7 @@ $lang->msg_invalid_format = '잘못된 형식입니다.'; $lang->msg_not_permitted_act = '요청한 기능을 실행할 수 있는 권한이 없습니다.'; $lang->msg_module_is_not_exists = '요청한 페이지를 찾을 수 없습니다. 사이트 관리자에게 문의해 주세요.'; $lang->msg_module_is_not_standalone = '요청한 페이지는 독립적으로 동작할 수 없습니다.'; +$lang->msg_module_class_not_found = '요청한 페이지를 처리할 클래스를 찾을 수 없습니다.'; $lang->msg_empty_search_target = '검색대상이 없습니다.'; $lang->msg_empty_search_keyword = '검색어가 없습니다.'; $lang->msg_empty_content = '내용이 없습니다.';