Removed template file check

This was causing an unecessary error during checkout.
This commit is contained in:
Rich Morgan 2015-01-12 13:28:54 -05:00
parent c452db1732
commit 7aea57bed0
1 changed files with 2 additions and 7 deletions

View File

@ -11,12 +11,7 @@ class Bitpay_Core_Block_Form_Bitpay extends Mage_Payment_Block_Form
$payment_template = 'bitpay/form/bitpay.phtml';
parent::_construct();
if (true === file_exists($payment_template) && true === is_readable($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.');
}
$this->setTemplate($payment_template);
}
}