diff --git a/cronjobs/findblock.php b/cronjobs/findblock.php index 71cca570..1ac69535 100755 --- a/cronjobs/findblock.php +++ b/cronjobs/findblock.php @@ -153,7 +153,7 @@ if (empty($aAllBlocks)) { $aAccounts = $notification->getNotificationAccountIdByType('new_block'); if (is_array($aAccounts)) { - $finder = $user->getUserName($aBlock['account_id']); + $finder = $user->getUserName($iAccountId); foreach ($aAccounts as $aData) { $aMailData['height'] = $aBlock['height']; $aMailData['subject'] = 'New Block'; @@ -162,6 +162,7 @@ if (empty($aAllBlocks)) { $aMailData['amount'] = $aBlock['amount']; $aMailData['difficulty'] = $aBlock['difficulty']; $aMailData['finder'] = $finder; + $aMailData['currency'] = $config['currency']; if (!$notification->sendNotification($aData['account_id'], 'new_block', $aMailData)) $log->logError('Failed to notify user of new found block: ' . $user->getUserName($aData['account_id'])); } diff --git a/public/templates/mail/notifications/new_block.tpl b/public/templates/mail/notifications/new_block.tpl index 46b81fbf..20549f18 100644 --- a/public/templates/mail/notifications/new_block.tpl +++ b/public/templates/mail/notifications/new_block.tpl @@ -1,5 +1,5 @@ -

{nocache}Block Number {$DATA.height} has been discovered by {$DATA.finder} with a total value of {$DATA.amount}! The current difficulty is {$DATA.difficulty}.{/nocache}

+

{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}