Esempio n. 1
0
 public function setDefaultUserCurrency()
 {
     $currency_id = $this->input->get('currency_id', 0, 'int');
     $response = array('errors' => 0);
     if (!KSMPrice::setDefaultUserCurrency($currency_id)) {
         $response['errors']++;
     }
     JFactory::getApplication()->close(json_encode($response, true));
 }