From 5c7b4805018ddd32f2c4cc0bed6caa513be6db13 Mon Sep 17 00:00:00 2001 From: BJRambo Date: Sat, 19 Aug 2017 09:52:38 +0900 Subject: [PATCH] Delete unuse custom code. --- modules/ncenterlite/ncenterlite.class.php | 32 ------------------- .../ncenterlite/ncenterlite.controller.php | 25 --------------- 2 files changed, 57 deletions(-) diff --git a/modules/ncenterlite/ncenterlite.class.php b/modules/ncenterlite/ncenterlite.class.php index 694229122..47d2202c0 100644 --- a/modules/ncenterlite/ncenterlite.class.php +++ b/modules/ncenterlite/ncenterlite.class.php @@ -1,26 +1,6 @@ disable_notify)) - { - $module_info = Context::get('module_info'); - if(in_array($module_info->mid, $this->disable_notify)) $result = TRUE; - } - - return $result; - } - function moduleInstall() { return new Object(); diff --git a/modules/ncenterlite/ncenterlite.controller.php b/modules/ncenterlite/ncenterlite.controller.php index 8bcf78c1b..855e803f4 100644 --- a/modules/ncenterlite/ncenterlite.controller.php +++ b/modules/ncenterlite/ncenterlite.controller.php @@ -87,11 +87,6 @@ class ncenterliteController extends ncenterlite $oModuleModel = getModel('module'); - if($this->_isDisable()) - { - return; - } - $oNcenterliteModel = getModel('ncenterlite'); $config = $oNcenterliteModel->getConfig(); @@ -150,11 +145,6 @@ class ncenterliteController extends ncenterlite function triggerAfterInsertComment($obj) { - if($this->_isDisable()) - { - return; - } - $oNcenterliteModel = getModel('ncenterlite'); $config = $oNcenterliteModel->getConfig(); @@ -718,14 +708,6 @@ class ncenterliteController extends ncenterlite return new Object(); } - if(count($this->disable_notify_bar_act)) - { - if(in_array(Context::get('act'), $this->disable_notify_bar_act)) - { - return new Object(); - } - } - // HTML 모드가 아니면 중지 + act에 admin이 포함되어 있으면 중지 if(Context::getResponseMethod() != 'HTML' || strpos(strtolower(Context::get('act')), 'admin') !== false) { @@ -740,13 +722,6 @@ class ncenterliteController extends ncenterlite $module_info = Context::get('module_info'); - if(count($this->disable_notify_bar_mid)) - { - if(in_array($module_info->mid, $this->disable_notify_bar_mid)) - { - return new Object(); - } - } // admin 모듈이면 중지 if($module_info->module == 'admin')