From 7aea57bed0e5b8276a39a44a7c23ec98e328145f Mon Sep 17 00:00:00 2001 From: Rich Morgan Date: Mon, 12 Jan 2015 13:28:54 -0500 Subject: [PATCH] Removed template file check This was causing an unecessary error during checkout. --- app/code/community/Bitpay/Core/Block/Form/Bitpay.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/code/community/Bitpay/Core/Block/Form/Bitpay.php b/app/code/community/Bitpay/Core/Block/Form/Bitpay.php index 9c52ebf..78bd184 100644 --- a/app/code/community/Bitpay/Core/Block/Form/Bitpay.php +++ b/app/code/community/Bitpay/Core/Block/Form/Bitpay.php @@ -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); } }