-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows line endings in ordercontroller, remove faulty error mess…
…age in callback
- Loading branch information
Showing
4 changed files
with
140 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 27 additions & 1 deletion
28
app/code/community/Quickpay/Payment/controllers/OrderController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
<?phpclass Quickpay_Payment_OrderController extends Mage_Adminhtml_Controller_Action{ public function indexAction() { $request = $this->getRequest()->getParams(); $order_id = isset($request['id']) ? $request['id'] : 0; $info_type = Mage::helper('quickpaypayment')->getInfoType($order_id); if ($info_type == 'normal') { $fields = Mage::helper('quickpaypayment')->getFields($order_id); } else { $fields = array(); } $content = $this ->getLayout() ->createBlock('core/template') ->setTemplate('quickpaypayment/grid/info.phtml') ->setFields($fields) ->setInfoType($info_type) ->toHtml(); $this->getResponse()->setBody($content); }} | ||
<?php | ||
|
||
class Quickpay_Payment_OrderController extends Mage_Adminhtml_Controller_Action | ||
{ | ||
public function indexAction() | ||
{ | ||
$request = $this->getRequest()->getParams(); | ||
$order_id = isset($request['id']) ? $request['id'] : 0; | ||
$info_type = Mage::helper('quickpaypayment')->getInfoType($order_id); | ||
|
||
if ($info_type == 'normal') { | ||
$fields = Mage::helper('quickpaypayment')->getFields($order_id); | ||
} else { | ||
$fields = array(); | ||
} | ||
|
||
$content = $this | ||
->getLayout() | ||
->createBlock('core/template') | ||
->setTemplate('quickpaypayment/grid/info.phtml') | ||
->setFields($fields) | ||
->setInfoType($info_type) | ||
->toHtml(); | ||
|
||
$this->getResponse()->setBody($content); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters