Skip to content

Commit

Permalink
Updated push notifications format
Browse files Browse the repository at this point in the history
  • Loading branch information
blondak committed Feb 6, 2017
1 parent dad4301 commit bcfd7cf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions include/classes/transaction.class.php
Expand Up @@ -430,6 +430,7 @@ private function createDebitRecord($account_id, $coin_address, $amount, $type) {
$aMailData['email'] = $this->user->getUserEmailById($account_id); $aMailData['email'] = $this->user->getUserEmailById($account_id);
$aMailData['subject'] = $type . ' Completed'; $aMailData['subject'] = $type . ' Completed';
$aMailData['amount'] = $amount; $aMailData['amount'] = $amount;
$aMailData['currency'] = $this->config['currency'];
if (!$this->notification->sendNotification($account_id, 'payout', $aMailData)) { if (!$this->notification->sendNotification($account_id, 'payout', $aMailData)) {
$this->setErrorMessage('Failed to send notification email to users address: ' . $aMailData['email'] . 'ERROR: ' . $this->notification->getCronError()); $this->setErrorMessage('Failed to send notification email to users address: ' . $aMailData['email'] . 'ERROR: ' . $this->notification->getCronError());
} }
Expand Down
8 changes: 4 additions & 4 deletions templates/mail/push_notifications/idle_worker.tpl
@@ -1,5 +1,5 @@
<p>One of your workers is currently IDLE: {nocache}{$DATA.worker}{/nocache}</p> One of your workers is currently IDLE: <b>{nocache}{$DATA.worker}{/nocache}</b><br/>
<p>We have not received any shares for this worker in the past 10 minutes.</p> We have not received any shares for this worker in the past 10 minutes.<br/>
<p>Since monitoring is enabled for this worker, this notification was sent.</p> Since monitoring is enabled for this worker, this notification was sent.<br/>
<br /> <br />
<p>Please check your workers!</p> Please check your workers!
2 changes: 1 addition & 1 deletion templates/mail/push_notifications/new_block.tpl
@@ -1 +1 @@
<p>{nocache}Block Number {$DATA.height} has been discovered by {$DATA.finder} with a total value of {$DATA.amount} {$DATA.currency}! The current difficulty is {$DATA.difficulty}.{/nocache}</p> {nocache}Block Number <b>{$DATA.height}</b> has been discovered by <b>{$DATA.finder}</b> with a total value of <b>{$DATA.amount} {$DATA.currency}</b>! The current difficulty is {$DATA.difficulty}.{/nocache}
3 changes: 1 addition & 2 deletions templates/mail/push_notifications/payout.tpl
@@ -1,2 +1 @@
<p>You account has been debited and the coins have been sent to your wallet.</p> You account has been debited and the coins have been sent to your wallet.Amount: {nocache}<b>{$DATA.amount} {$DATA.currency}</b>{/nocache}
<p>Amount: {nocache}{$DATA.amount}{/nocache}</p>
10 changes: 5 additions & 5 deletions templates/mail/push_notifications/success_login.tpl
@@ -1,5 +1,5 @@
<p>Your account has successfully logged in</p> Your account has successfully logged in<br/>
<p>User: {$DATA.LOGINUSER}</p> User: <b>{$DATA.LOGINUSER}</b><br/>
<p>IP: {$DATA.LOGINIP}</p> IP: <b>{$DATA.LOGINIP}</b><br/>
<p>Time: {$DATA.LOGINTIME}</p> Time: <b>{$DATA.LOGINTIME}</b><br/>
<p>If you initiated this login, you can ignore this message. If you did NOT, please notify an administrator.</p> If you initiated this login, you can ignore this message. If you did NOT, please notify an administrator.

0 comments on commit bcfd7cf

Please sign in to comment.