Removed template file check
This was causing an unecessary error during checkout.
This commit is contained in:
parent
c452db1732
commit
7aea57bed0
|
@ -11,12 +11,7 @@ class Bitpay_Core_Block_Form_Bitpay extends Mage_Payment_Block_Form
|
||||||
$payment_template = 'bitpay/form/bitpay.phtml';
|
$payment_template = 'bitpay/form/bitpay.phtml';
|
||||||
|
|
||||||
parent::_construct();
|
parent::_construct();
|
||||||
|
|
||||||
if (true === file_exists($payment_template) && true === is_readable($payment_template)) {
|
$this->setTemplate($payment_template);
|
||||||
$this->setTemplate($payment_template);
|
|
||||||
} else {
|
|
||||||
\Mage::helper('bitpay')->debugData('[ERROR] In Bitpay_Core_Block_Form_Bitpay::_construct(): HTML payment template missing or unreadable.');
|
|
||||||
throw new \Exception('In Bitpay_Core_Block_Iframe::getIframeUrl(): HTML payment template missing or unreadable.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue