Skip to content

Commit

Permalink
Merge pull request #879 from inbaz/develop
Browse files Browse the repository at this point in the history
put config into view where it's needed.
  • Loading branch information
BigAndini authored Oct 3, 2016
2 parents 5ada457 + ab6efd4 commit 88d0f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions module/PreReg/src/PreReg/Controller/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ public function viewAction() {
return $this->notFoundAction();
}

$config = $this->getServiceLocator()->get('config');
return new ViewModel(array(
'order' => $order,
'config' => $config,
));
}

Expand Down
1 change: 0 additions & 1 deletion module/PreReg/view/pre-reg/order/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ $this->headTitle($title);
[email protected] to your address book. To be sure the email
with your E-Tickets will not arrive in your spamfolder.'); ?></p>
<?php elseif($order->getStatus()->getValue() == 'ordered'): ?>
<?php #if($order->getStatus() == 'unpaid'): ?>
<?php if($paymenttype->getType() == 'BankTransfer'): ?>
<h3><?php echo $this->translate('Bank Transfer Details'); ?></h3>
<?php echo $this->partial('partial/banktransfer-info.phtml', array('order' => $order, 'config' => $config)); ?>
Expand Down

0 comments on commit 88d0f4e

Please sign in to comment.