Changeset 22539


Ignore:
Timestamp:
2013/02/13 18:52:55 (8 years ago)
Author:
pineray
Message:

LC_Page_Shopping_LoadPaymentModule.phpからdtb_paymentテーブルを直接指定している箇所をなくす

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping_LoadPaymentModule.php

    r22206 r22539  
    9191     */ 
    9292    function getModulePath($order_id) { 
    93         $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    94         $sql = <<< __EOS__ 
    95             SELECT module_path 
    96             FROM dtb_payment T1 
    97                 JOIN dtb_order T2 
    98                     ON T1.payment_id = T2.payment_id 
    99             WHERE order_id = ? 
    100 __EOS__; 
    101         $module_path = $objQuery->getOne($sql, array($order_id)); 
     93        $objPurchase = new SC_Helper_Purchase_Ex(); 
     94        $objPayment = new SC_Helper_Payment_Ex(); 
     95 
     96        $order = $objPurchase->getOrder($order_id); 
     97        $payment = $objPayment->get($order['payment_id']); 
     98        $module_path = $payment['module_path']; 
     99 
    102100        if (file_exists($module_path)) { 
    103101            return $module_path; 
Note: See TracChangeset for help on using the changeset viewer.