Index: branches/version-2_12-dev/data/class/helper/SC_Helper_Purchase.php
===================================================================
--- branches/version-2_12-dev/data/class/helper/SC_Helper_Purchase.php	(revision 21572)
+++ branches/version-2_12-dev/data/class/helper/SC_Helper_Purchase.php	(revision 21589)
@@ -79,12 +79,12 @@
         $orderTemp['status'] = $orderStatus;
         $cartkey = $objCartSession->getKey();
-        $orderId = $this->registerOrderComplete($orderTemp, $objCartSession, $cartkey);
+        $order_id = $this->registerOrderComplete($orderTemp, $objCartSession, $cartkey);
         $isMultiple = SC_Helper_Purchase::isMultiple();
         $shippingTemp =& $this->getShippingTemp($isMultiple);
         foreach ($shippingTemp as $shippingId => $val) {
-            $this->registerShipmentItem($orderId, $shippingId, $val['shipment_item']);
-        }
-
-        $this->registerShipping($orderId, $shippingTemp);
+            $this->registerShipmentItem($order_id, $shippingId, $val['shipment_item']);
+        }
+
+        $this->registerShipping($order_id, $shippingTemp);
         $objQuery->commit();
 
@@ -94,8 +94,7 @@
         }
 
-        $this->cleanupSession($orderId, $objCartSession, $objCustomer, $cartkey);
-
-        GC_Utils_Ex::gfFrontLog('order complete. customerId=' . $customerId);
-
+        $this->cleanupSession($order_id, $objCartSession, $objCustomer, $cartkey);
+
+        GC_Utils_Ex::gfPrintLog('order complete. order_id=' . $order_id);
     }
 
@@ -516,5 +515,5 @@
     function extractShipping($arrSrc) {
         $arrKey = array();
-        foreach($this->arrShippingKey as $key) {
+        foreach ($this->arrShippingKey as $key) {
             $arrKey[] = 'shipping_' . $key;
         }
Index: branches/version-2_12-dev/data/class/SC_Query.php
===================================================================
--- branches/version-2_12-dev/data/class/SC_Query.php	(revision 21583)
+++ branches/version-2_12-dev/data/class/SC_Query.php	(revision 21589)
@@ -1082,5 +1082,5 @@
         }
 
-        $msg .= 'execution time: ' . sprintf("%.2f sec", $timeExecTime) . "\n";
+        $msg .= 'execution time: ' . sprintf('%.2f sec', $timeExecTime) . "\n";
         GC_Utils_Ex::gfPrintLog($msg, DB_LOG_REALFILE);
     }
Index: branches/version-2_12-dev/data/class/SC_View.php
===================================================================
--- branches/version-2_12-dev/data/class/SC_View.php	(revision 21583)
+++ branches/version-2_12-dev/data/class/SC_View.php	(revision 21589)
@@ -57,5 +57,5 @@
         $this->_smarty->register_function('sfIsHTTPS', array('SC_Utils_Ex', 'sfIsHTTPS'));
         $this->_smarty->register_function('sfSetErrorStyle', array('SC_Utils_Ex', 'sfSetErrorStyle'));
-        $this->_smarty->register_function('printXMLDeclaration', array('SC_Utils_Ex', 'printXMLDeclaration'));
+        $this->_smarty->register_function('printXMLDeclaration', array('GC_Utils_Ex', 'printXMLDeclaration'));
         $this->_smarty->default_modifiers = array('script_escape');
 
Index: branches/version-2_12-dev/data/class/util/GC_Utils.php
===================================================================
--- branches/version-2_12-dev/data/class/util/GC_Utils.php	(revision 21582)
+++ branches/version-2_12-dev/data/class/util/GC_Utils.php	(revision 21589)
@@ -106,5 +106,5 @@
             }
             if (($arrLine['class'] === 'GC_Utils' || $arrLine['class'] === 'GC_Utils_Ex')
-                && $arrLine['function'] === 'gfDebugLog'
+                && ($arrLine['function'] === 'gfDebugLog' || $arrLine['function'] === 'gfPrintLog')
             ) {
                 break 1;
@@ -389,3 +389,17 @@
         return defined('INSTALL_FUNCTION') && INSTALL_FUNCTION === true;
     }
+
+    /**
+     * XML宣言を出力する.
+     *
+     * XML宣言があると問題が発生する UA は出力しない.
+     *
+     * @return string XML宣言の文字列
+     */
+    function printXMLDeclaration() {
+        $ua = $_SERVER['HTTP_USER_AGENT'];
+        if (!preg_match('/MSIE/', $ua) || preg_match('/MSIE 7/', $ua)) {
+            echo '<?xml version="1.0" encoding="' . CHAR_CODE . '"?>' . "\n";
+        }
+    }
 }
