[Svn-src-all:1191] [version-2_5-dev 20079] リファクタリング #979

kimoto admin @ mail.ec-cube.net
2011年 2月 3日 (木) 20:51:22 JST


Subversion committed to /home/svn/open 20079
http://svn.ec-cube.net/open_trac/changeset/20079
┌────────────────────────────┐
│更新者 :  kimoto                                       │
│更新日時:  2011-02-03 20:51:22 +0900 (木, 03  2月 2011)│
└────────────────────────────┘

Log:
--------------------------------------------------------
リファクタリング #979


Changed:                      [U:修正,A:追加,D:削除]
--------------------------------------------------------
U   branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry_Complete.php

変更: branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry_Complete.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry_Complete.php	2011-02-03 11:22:43 UTC (rev 20078)
+++ branches/version-2_5-dev/data/class/pages/entry/LC_Page_Entry_Complete.php	2011-02-03 11:51:22 UTC (rev 20079)
@@ -43,21 +43,6 @@
      */
     function init() {
         parent::init();
-        
-        // カートが空かどうかを確認する。
-        $objCartSess = new SC_CartSession();
-        $this->tpl_cart_empty = count($objCartSess->getCartList()) < 1;
-
-        // メインテンプレートを設定
-        if(CUSTOMER_CONFIRM_MAIL == true) {
-            // 仮会員登録完了
-            $this->tpl_mainpage = 'entry/complete.tpl';
-        } else {
-            // 本会員登録完了
-            $this->tpl_mainpage = 'regist/complete.tpl';
-            $this->tpl_conv_page = AFF_ENTRY_COMPLETE;
-        }
-
         $this->httpCacheControl('nocache');
     }
 
@@ -81,6 +66,20 @@
         if (!SC_Helper_Session_Ex::isValidToken()) {
             SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, "", true);
         }
+
+        // カートが空かどうかを確認する。
+        $objCartSess            = new SC_CartSession();
+        $this->tpl_cart_empty   = count($objCartSess->getCartList()) < 1;
+
+        // メインテンプレートを設定
+        if(CUSTOMER_CONFIRM_MAIL == true) {
+            // 仮会員登録完了
+            $this->tpl_mainpage     = 'entry/complete.tpl';
+        } else {
+            // 本会員登録完了
+            $this->tpl_mainpage     = 'regist/complete.tpl';
+            $this->tpl_conv_page    = AFF_ENTRY_COMPLETE;
+        }
     }
 
     /**




Svn-src-all メーリングリストの案内