fixed worker name in mail body

This commit is contained in:
Sebastian Grewe 2013-06-14 09:58:54 +02:00
parent 627bc5b47e
commit 6f3912b6a2
2 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@ if (empty($aWorkers)) {
$aData = $aWorker;
$aData['username'] = $user->getUserName($aWorker['account_id']);
$aData['subject'] = 'IDLE Worker : ' . $aWorker['username'];
$aData['worker'] = $aWorker['username'];
$aData['email'] = $user->getUserEmail($aData['username']);
if (!$notification->sendNotification($aWorker['account_id'], 'idle_worker', $aData))
verbose($notification->getError() . "\n");

View File

@ -1,7 +1,9 @@
<html>
<body>
<p>One of your workers is currently IDLE: {$DATA.username}</p>
<p>One of your workers is currently IDLE: {$DATA.worker}</p>
<p>We have not received any shares for this worker in the past 10 minutes.</p>
<p>Since monitoring is enabled for this worker, this notification was sent.</p>
<br />
<p>Please check your workers!</p>
<br/>
<br/>