From 1ba633ff83e8a3d7c9142c8402be901e0b9466af Mon Sep 17 00:00:00 2001 From: qw5414 Date: Fri, 22 Jan 2016 01:20:27 +0900 Subject: [PATCH] =?UTF-8?q?=EB=94=94=EB=B2=84=EA=B7=B8=EB=A5=BC=20?= =?UTF-8?q?=EC=9C=84=ED=95=9C=20=EC=BD=94=EB=93=9C=EC=99=80=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EC=9D=98=20=EB=93=A4=EC=97=AC=EC=93=B0=EA=B8=B0?= =?UTF-8?q?=EA=B0=80=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EB=B6=80=EB=B6=84?= =?UTF-8?q?=EC=9D=84=20=EA=B3=A0=EC=B9=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/document/conf/module.xml | 2 +- modules/document/document.controller.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/document/conf/module.xml b/modules/document/conf/module.xml index b6f4a5306..95ead3bd5 100644 --- a/modules/document/conf/module.xml +++ b/modules/document/conf/module.xml @@ -29,7 +29,7 @@ - . + . diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php index 5bdad4f8c..c78bf8dea 100644 --- a/modules/document/document.controller.php +++ b/modules/document/document.controller.php @@ -1179,11 +1179,11 @@ class documentController extends document $oDocumentModel = getModel('document'); $oDocument = $oDocumentModel->getDocument($document_srl, false, false); // Pass if the author's IP address is as same as visitor's. - /*if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR']) + if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR']) { $_SESSION['voted_document'][$document_srl] = true; return new Object(-1, $failed_voted); - }*/ + } // Create a member model object $oMemberModel = getModel('member');