// Fix PrestaShopException typo
This commit is contained in:
@@ -131,7 +131,7 @@ class AddressControllerCore extends FrontController
|
||||
|
||||
// Check country
|
||||
if (!($country = new Country($address->id_country)) || !Validate::isLoadedObject($country))
|
||||
throw new PrestashopException('Country cannot be loaded with address->id_country');
|
||||
throw new PrestaShopException('Country cannot be loaded with address->id_country');
|
||||
|
||||
if ((int)$country->contains_states && !(int)$address->id_state)
|
||||
$this->errors[] = Tools::displayError('This country requires a state selection.');
|
||||
|
||||
@@ -227,15 +227,15 @@ class OrderOpcControllerCore extends ParentOrderController
|
||||
die();
|
||||
break;
|
||||
default:
|
||||
throw new PrestashopException('Unknown method "'.Tools::getValue('method').'"');
|
||||
throw new PrestaShopException('Unknown method "'.Tools::getValue('method').'"');
|
||||
}
|
||||
}
|
||||
else
|
||||
throw new PrestashopException('Method is not defined');
|
||||
throw new PrestaShopException('Method is not defined');
|
||||
}
|
||||
}
|
||||
elseif (Tools::isSubmit('ajax'))
|
||||
throw new PrestashopException('Method is not defined');
|
||||
throw new PrestaShopException('Method is not defined');
|
||||
}
|
||||
|
||||
public function setMedia()
|
||||
|
||||
Reference in New Issue
Block a user