Changeset 23647


Ignore:
Timestamp:
2014/10/12 09:43:51 (6 years ago)
Author:
Seasoft
Message:

#2635 (無駄な処理を改善する for 2.13.4)

  • date() 第2引数は省略可
Location:
branches/version-2_13-dev/data/class
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/SC_CheckError.php

    r23605 r23647  
    13421342 
    13431343            // 年の最大数値制限チェック 
    1344             $current_year = date('Y', strtotime('now')); 
     1344            $current_year = date('Y'); 
    13451345            $this->doFunc(array("{$disp_name}(年)", $keyname, $current_year), 
    13461346                array('MAX_CHECK')); 
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r23564 r23647  
    110110        $this->arrDayShippingDate = $objShippingDate->getDay(true); 
    111111 
    112         $objBirthDate = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now'))); 
     112        $objBirthDate = new SC_Date_Ex(BIRTH_YEAR, date('Y')); 
    113113        $this->arrBirthYear = $objBirthDate->getYear('', START_BIRTH_YEAR, ''); 
    114114        $this->arrBirthMonth = $objBirthDate->getMonth(true); 
  • branches/version-2_13-dev/data/class/pages/entry/LC_Page_Entry.php

    r23605 r23647  
    4949 
    5050        // 生年月日選択肢の取得 
    51         $objDate            = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now'))); 
     51        $objDate            = new SC_Date_Ex(BIRTH_YEAR, date('Y')); 
    5252        $this->arrYear      = $objDate->getYear('', START_BIRTH_YEAR, ''); 
    5353        $this->arrMonth     = $objDate->getMonth(true); 
  • branches/version-2_13-dev/data/class/pages/mypage/LC_Page_Mypage_Change.php

    r23605 r23647  
    5454 
    5555        // 生年月日選択肢の取得 
    56         $objDate            = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now'))); 
     56        $objDate            = new SC_Date_Ex(BIRTH_YEAR, date('Y')); 
    5757        $this->arrYear      = $objDate->getYear('', START_BIRTH_YEAR, ''); 
    5858        $this->arrMonth     = $objDate->getMonth(true); 
  • branches/version-2_13-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r23546 r23647  
    4949        $this->tpl_onload = 'eccube.toggleDeliveryForm();'; 
    5050 
    51         $objDate = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now'))); 
     51        $objDate = new SC_Date_Ex(BIRTH_YEAR, date('Y')); 
    5252        $this->arrYear = $objDate->getYear('', START_BIRTH_YEAR, ''); 
    5353        $this->arrMonth = $objDate->getMonth(true); 
Note: See TracChangeset for help on using the changeset viewer.