From b7ba92170f74db3b73b1ad19c361d96e427ae27e Mon Sep 17 00:00:00 2001 From: BJRambo Date: Thu, 26 May 2016 23:01:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EA=B7=9C=EC=B9=99?= =?UTF-8?q?=EC=97=90=20=EB=A7=9E=EA=B2=8C=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- widgets/login_info/login_info.class.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/widgets/login_info/login_info.class.php b/widgets/login_info/login_info.class.php index 8881b059f..9c5d145a1 100644 --- a/widgets/login_info/login_info.class.php +++ b/widgets/login_info/login_info.class.php @@ -1,5 +1,6 @@ */ + /** * @class login_info * @author NAVER (developers@xpressengine.com) @@ -21,8 +22,14 @@ class login_info extends WidgetHandler $tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin); Context::set('colorset', $args->colorset); // Specify a template file - if(Context::get('is_logged')) $tpl_file = 'login_info'; - else $tpl_file = 'login_form'; + if(Context::get('is_logged')) + { + $tpl_file = 'login_info'; + } + else + { + $tpl_file = 'login_form'; + } // Get the member configuration $oModuleModel = getModel('module'); $this->member_config = $oModuleModel->getModuleConfig('member'); @@ -33,9 +40,12 @@ class login_info extends WidgetHandler $useSsl = Context::getSslStatus(); if($useSsl != 'none') { - if(strncasecmp('https://', Context::getRequestUri(), 8) === 0) $ssl_mode = true; + if(strncasecmp('https://', Context::getRequestUri(), 8) === 0) + { + $ssl_mode = true; + } } - Context::set('ssl_mode',$ssl_mode); + Context::set('ssl_mode', $ssl_mode); // Compile a template $oTemplate = &TemplateHandler::getInstance();