diff --git a/modules/board/board.mobile.php b/modules/board/board.mobile.php
index 67ed1108d..8419078f1 100644
--- a/modules/board/board.mobile.php
+++ b/modules/board/board.mobile.php
@@ -87,36 +87,9 @@ class boardMobile extends boardView
Context::addJsFilter($this->module_path.'tpl/filter', 'input_password.xml');
}
- function dispBoardCategory()
- {
- $this->dispBoardCategoryList();
- $category_list = Context::get('category_list');
- $this->setTemplateFile('category.html');
- }
-
function getBoardCommentPage()
- {
- $document_srl = Context::get('document_srl');
- $oDocumentModel =& getModel('document');
- if(!$document_srl)
- {
- return new Object(-1, "msg_invalid_request");
- }
-
- if($this->grant->view == false || ($this->module_info->consultation == 'Y' && !$this->grant->manager && !$this->grant->consultation_read))
- {
- return new Object(-1, "msg_not_permitted");
- }
-
- $oDocument = $oDocumentModel->getDocument($document_srl);
- if(!$oDocument->isExists())
- {
- return new Object(-1, "msg_invalid_request");
- }
- Context::set('oDocument', $oDocument);
- $oTemplate = TemplateHandler::getInstance();
- $html = $oTemplate->compile($this->getTemplatePath(), "comment.html");
- $this->add("html", $html);
+ {
+ $this->dispBoardCommentPage();
}
function dispBoardMessage($msg_code)
diff --git a/modules/board/board.view.php b/modules/board/board.view.php
index 25f9b14a8..e0131824b 100644
--- a/modules/board/board.view.php
+++ b/modules/board/board.view.php
@@ -351,8 +351,6 @@ class boardView extends board
* add javascript filters
**/
Context::addJsFilter($this->module_path.'tpl/filter', 'insert_comment.xml');
-
-// return new Object();
}
/**
@@ -642,6 +640,43 @@ class boardView extends board
$this->setTemplateFile('tag_list');
}
+ /**
+ * @brief display category list
+ */
+ function dispBoardCategory()
+ {
+ $this->dispBoardCategoryList();
+ $this->setTemplateFile('category.html');
+ }
+
+ /**
+ * @brief display comment page
+ */
+ function dispBoardCommentPage()
+ {
+ $document_srl = Context::get('document_srl');
+ if(!$document_srl)
+ {
+ return new Object(-1, "msg_invalid_request");
+ }
+
+ if($this->grant->view == false || ($this->module_info->consultation == 'Y' && !$this->grant->manager && !$this->grant->consultation_read))
+ {
+ return new Object(-1, "msg_not_permitted");
+ }
+
+ $oDocument = getModel('document')->getDocument($document_srl);
+ if(!$oDocument->isExists())
+ {
+ return new Object(-1, "msg_invalid_request");
+ }
+ Context::set('oDocument', $oDocument);
+
+ $oTemplate = TemplateHandler::getInstance();
+ $html = $oTemplate->compile($this->getTemplatePath(), 'comment.html');
+ $this->add('html', $html);
+ }
+
/**
* @brief display document write form
**/
diff --git a/modules/board/conf/module.xml b/modules/board/conf/module.xml
index a35626d44..e8850f127 100644
--- a/modules/board/conf/module.xml
+++ b/modules/board/conf/module.xml
@@ -75,7 +75,8 @@
-
+
+