Commit 3999a832 authored by nicola85's avatar nicola85

Fix function names

parent 4c794bc6
......@@ -554,7 +554,7 @@ function bat_api_services_add_unit($name, $type, $status) {
$return = new stdClass();
$return->sessid = session_id();
if (bat_unit_type_load($type) !== FALSE && $name != '') {
if (bat_type_load($type) !== FALSE && $name != '') {
$unit = bat_unit_create(
array(
'name' => $name,
......
......@@ -16,7 +16,7 @@ class BatUnitFieldHandlerBasePrice extends BatUnitFieldHandlerBase {
public function getFieldInfo() {
$price_fields = array();
$bat_unit_type = bat_unit_type_load($this->unit->type);
$bat_unit_type = bat_type_load($this->unit->type);
$base_price_field = NULL;
if (isset($bat_unit_type->data['pricing_field'])) {
$base_price_field = $bat_unit_type->data['pricing_field'];
......
......@@ -16,7 +16,7 @@ class BatUnitFieldHandlerCommercePrice extends BatUnitFieldHandlerBase {
public function getFieldInfo() {
$price_fields = array();
$bat_unit_type = bat_unit_type_load($this->unit->type);
$bat_unit_type = bat_type_load($this->unit->type);
$base_price_field = NULL;
if (isset($bat_unit_type->data['pricing_field'])) {
$base_price_field = $bat_unit_type->data['pricing_field'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment