Added namespace backslash
This commit is contained in:
parent
789b24b7b2
commit
9a96cd9e7a
|
@ -18,14 +18,14 @@ class Bitpay_Core_Block_Info extends Mage_Payment_Block_Info
|
||||||
|
|
||||||
if (false === isset($order) || true === empty($order)) {
|
if (false === isset($order) || true === empty($order)) {
|
||||||
\Mage::helper('bitpay')->debugData('[ERROR] In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the order.');
|
\Mage::helper('bitpay')->debugData('[ERROR] In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the order.');
|
||||||
throw new Exception('In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the order.');
|
throw new \Exception('In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the order.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$incrementId = $order->getIncrementId();
|
$incrementId = $order->getIncrementId();
|
||||||
|
|
||||||
if (false === isset($incrementId) || true === empty($incrementId)) {
|
if (false === isset($incrementId) || true === empty($incrementId)) {
|
||||||
\Mage::helper('bitpay')->debugData('[ERROR] In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the incrementId.');
|
\Mage::helper('bitpay')->debugData('[ERROR] In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the incrementId.');
|
||||||
throw new Exception('In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the incrementId.');
|
throw new \Exception('In Bitpay_Core_Block_Info::getBitpayInvoiceUrl(): could not obtain the incrementId.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$bitpayInvoice = \Mage::getModel('bitpay/invoice')->load($incrementId, 'increment_id');
|
$bitpayInvoice = \Mage::getModel('bitpay/invoice')->load($incrementId, 'increment_id');
|
||||||
|
|
Loading…
Reference in New Issue