Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed May 19, 2015
1 parent 6b0c402 commit 5b26041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/shopcart/models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function mailAdmin()
{
$settings = Yii::$app->getModule('admin')->activeModules['shopcart']->settings;

if(!$settings['mailAdminOnNewPost']){
if(!$settings['mailAdminOnNewOrder']){
return false;
}
return Mail::send(
Expand Down
2 changes: 1 addition & 1 deletion modules/shopcart/views/a/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<dd><?= Yii::$app->formatter->asDatetime($order->time, 'medium') ?></dd>

<dt>IP</dt>
<dd><?= $model->ip ?> <a href="//freegeoip.net/?q=<?= $model->ip ?>" class="label label-info" target="_blank">info</a></dd>
<dd><?= $order->ip ?> <a href="//freegeoip.net/?q=<?= $order->ip ?>" class="label label-info" target="_blank">info</a></dd>

<dt><?= Yii::t('easyii/shopcart', 'Comment') ?></dt>
<dd><?= nl2br($order->comment) ?></dd>
Expand Down

0 comments on commit 5b26041

Please sign in to comment.