Ejemplo n.º 1
0
 function loadCurrency()
 {
     global $toC_Json;
     $osC_Currencies = new osC_Currencies_Admin();
     $data = $osC_Currencies->getData($_REQUEST['currencies_id']);
     if ($data['code'] == DEFAULT_CURRENCY) {
         $data['is_default'] = '1';
     }
     $response = array('success' => true, 'data' => $data);
     echo $toC_Json->encode($response);
 }