From 6f3912b6a2a4b56352b6badcffb28384503396e4 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 14 Jun 2013 09:58:54 +0200 Subject: [PATCH] fixed worker name in mail body --- cronjobs/notifications.php | 1 + public/templates/mail/notifications/idle_worker.tpl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cronjobs/notifications.php b/cronjobs/notifications.php index a6b8b101..ec61002a 100755 --- a/cronjobs/notifications.php +++ b/cronjobs/notifications.php @@ -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"); diff --git a/public/templates/mail/notifications/idle_worker.tpl b/public/templates/mail/notifications/idle_worker.tpl index 6d1c282c..3ef12840 100644 --- a/public/templates/mail/notifications/idle_worker.tpl +++ b/public/templates/mail/notifications/idle_worker.tpl @@ -1,7 +1,9 @@ -

One of your workers is currently IDLE: {$DATA.username}

+

One of your workers is currently IDLE: {$DATA.worker}

+

We have not received any shares for this worker in the past 10 minutes.

Since monitoring is enabled for this worker, this notification was sent.

+

Please check your workers!