Changeset 21589
- Timestamp:
- 2012/03/04 22:25:28 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Query.php
r21583 r21589 1082 1082 } 1083 1083 1084 $msg .= 'execution time: ' . sprintf( "%.2f sec", $timeExecTime) . "\n";1084 $msg .= 'execution time: ' . sprintf('%.2f sec', $timeExecTime) . "\n"; 1085 1085 GC_Utils_Ex::gfPrintLog($msg, DB_LOG_REALFILE); 1086 1086 } -
branches/version-2_12-dev/data/class/SC_View.php
r21583 r21589 57 57 $this->_smarty->register_function('sfIsHTTPS', array('SC_Utils_Ex', 'sfIsHTTPS')); 58 58 $this->_smarty->register_function('sfSetErrorStyle', array('SC_Utils_Ex', 'sfSetErrorStyle')); 59 $this->_smarty->register_function('printXMLDeclaration', array(' SC_Utils_Ex', 'printXMLDeclaration'));59 $this->_smarty->register_function('printXMLDeclaration', array('GC_Utils_Ex', 'printXMLDeclaration')); 60 60 $this->_smarty->default_modifiers = array('script_escape'); 61 61 -
branches/version-2_12-dev/data/class/helper/SC_Helper_Purchase.php
r21572 r21589 79 79 $orderTemp['status'] = $orderStatus; 80 80 $cartkey = $objCartSession->getKey(); 81 $order Id = $this->registerOrderComplete($orderTemp, $objCartSession, $cartkey);81 $order_id = $this->registerOrderComplete($orderTemp, $objCartSession, $cartkey); 82 82 $isMultiple = SC_Helper_Purchase::isMultiple(); 83 83 $shippingTemp =& $this->getShippingTemp($isMultiple); 84 84 foreach ($shippingTemp as $shippingId => $val) { 85 $this->registerShipmentItem($order Id, $shippingId, $val['shipment_item']);86 } 87 88 $this->registerShipping($order Id, $shippingTemp);85 $this->registerShipmentItem($order_id, $shippingId, $val['shipment_item']); 86 } 87 88 $this->registerShipping($order_id, $shippingTemp); 89 89 $objQuery->commit(); 90 90 … … 94 94 } 95 95 96 $this->cleanupSession($orderId, $objCartSession, $objCustomer, $cartkey); 97 98 GC_Utils_Ex::gfFrontLog('order complete. customerId=' . $customerId); 99 96 $this->cleanupSession($order_id, $objCartSession, $objCustomer, $cartkey); 97 98 GC_Utils_Ex::gfPrintLog('order complete. order_id=' . $order_id); 100 99 } 101 100 … … 516 515 function extractShipping($arrSrc) { 517 516 $arrKey = array(); 518 foreach ($this->arrShippingKey as $key) {517 foreach ($this->arrShippingKey as $key) { 519 518 $arrKey[] = 'shipping_' . $key; 520 519 } -
branches/version-2_12-dev/data/class/util/GC_Utils.php
r21582 r21589 106 106 } 107 107 if (($arrLine['class'] === 'GC_Utils' || $arrLine['class'] === 'GC_Utils_Ex') 108 && $arrLine['function'] === 'gfDebugLog'108 && ($arrLine['function'] === 'gfDebugLog' || $arrLine['function'] === 'gfPrintLog') 109 109 ) { 110 110 break 1; … … 389 389 return defined('INSTALL_FUNCTION') && INSTALL_FUNCTION === true; 390 390 } 391 392 /** 393 * XML宣言を出力する. 394 * 395 * XML宣言があると問題が発生する UA は出力しない. 396 * 397 * @return string XML宣言の文字列 398 */ 399 function printXMLDeclaration() { 400 $ua = $_SERVER['HTTP_USER_AGENT']; 401 if (!preg_match('/MSIE/', $ua) || preg_match('/MSIE 7/', $ua)) { 402 echo '<?xml version="1.0" encoding="' . CHAR_CODE . '"?>' . "\n"; 403 } 404 } 391 405 }
Note: See TracChangeset
for help on using the changeset viewer.