diff options
author | Bot <bot@myigel.name> | 2017-01-03 14:12:17 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-03 15:32:59 +0100 |
commit | 55141154c083acc2d0397f4c62b4e0be1c7a19fa (patch) | |
tree | 7e5e54a19f7df976fa68c42f21f1484112a7c257 /includes/mailer | |
parent | 356b2582f3e6a43ecf2607acad4a7fe0b37f659a (diff) |
Replaced " with '
Diffstat (limited to 'includes/mailer')
-rw-r--r-- | includes/mailer/shifts_mailer.php | 100 | ||||
-rw-r--r-- | includes/mailer/users_mailer.php | 4 |
2 files changed, 52 insertions, 52 deletions
diff --git a/includes/mailer/shifts_mailer.php b/includes/mailer/shifts_mailer.php index 76426dc7..5c0e4310 100644 --- a/includes/mailer/shifts_mailer.php +++ b/includes/mailer/shifts_mailer.php @@ -6,45 +6,45 @@ */ function mail_shift_change($old_shift, $new_shift) { - $users = ShiftEntries_by_shift($old_shift["SID"]); - $old_room = Room($old_shift["RID"]); - $new_room = Room($new_shift["RID"]); + $users = ShiftEntries_by_shift($old_shift['SID']); + $old_room = Room($old_shift['RID']); + $new_room = Room($new_shift['RID']); $noticeable_changes = false; - $message = _("A Shift you are registered on has changed:"); + $message = _('A Shift you are registered on has changed:'); $message .= "\n"; - if ($old_shift["name"] != $new_shift["name"]) { - $message .= sprintf(_("* Shift type changed from %s to %s"), $old_shift["name"], $new_shift["name"]) . "\n"; + if ($old_shift['name'] != $new_shift['name']) { + $message .= sprintf(_('* Shift type changed from %s to %s'), $old_shift['name'], $new_shift['name']) . "\n"; $noticeable_changes = true; } - if ($old_shift["title"] != $new_shift["title"]) { - $message .= sprintf(_("* Shift title changed from %s to %s"), $old_shift["title"], $new_shift["title"]) . "\n"; + if ($old_shift['title'] != $new_shift['title']) { + $message .= sprintf(_('* Shift title changed from %s to %s'), $old_shift['title'], $new_shift['title']) . "\n"; $noticeable_changes = true; } - if ($old_shift["start"] != $new_shift["start"]) { + if ($old_shift['start'] != $new_shift['start']) { $message .= sprintf( - _("* Shift Start changed from %s to %s"), - date("Y-m-d H:i", $old_shift["start"]), - date("Y-m-d H:i", $new_shift["start"]) + _('* Shift Start changed from %s to %s'), + date('Y-m-d H:i', $old_shift['start']), + date('Y-m-d H:i', $new_shift['start']) ) . "\n"; $noticeable_changes = true; } - if ($old_shift["end"] != $new_shift["end"]) { + if ($old_shift['end'] != $new_shift['end']) { $message .= sprintf( - _("* Shift End changed from %s to %s"), - date("Y-m-d H:i", $old_shift["end"]), - date("Y-m-d H:i", $new_shift["end"]) + _('* Shift End changed from %s to %s'), + date('Y-m-d H:i', $old_shift['end']), + date('Y-m-d H:i', $new_shift['end']) ) . "\n"; $noticeable_changes = true; } - if ($old_shift["RID"] != $new_shift["RID"]) { - $message .= sprintf(_("* Shift Location changed from %s to %s"), $old_room["Name"], $new_room["Name"]) . "\n"; + if ($old_shift['RID'] != $new_shift['RID']) { + $message .= sprintf(_('* Shift Location changed from %s to %s'), $old_room['Name'], $new_room['Name']) . "\n"; $noticeable_changes = true; } @@ -54,16 +54,16 @@ function mail_shift_change($old_shift, $new_shift) } $message .= "\n"; - $message .= _("The updated Shift:") . "\n"; + $message .= _('The updated Shift:') . "\n"; - $message .= $new_shift["name"] . "\n"; - $message .= $new_shift["title"] . "\n"; - $message .= date("Y-m-d H:i", $new_shift["start"]) . " - " . date("H:i", $new_shift["end"]) . "\n"; - $message .= $new_room["Name"] . "\n"; + $message .= $new_shift['name'] . "\n"; + $message .= $new_shift['title'] . "\n"; + $message .= date('Y-m-d H:i', $new_shift['start']) . ' - ' . date('H:i', $new_shift['end']) . "\n"; + $message .= $new_room['Name'] . "\n"; foreach ($users as $user) { - if ($user["email_shiftinfo"]) { - engelsystem_email_to_user($user, '[engelsystem] ' . _("Your Shift has changed"), $message, true); + if ($user['email_shiftinfo']) { + engelsystem_email_to_user($user, '[engelsystem] ' . _('Your Shift has changed'), $message, true); } } } @@ -73,19 +73,19 @@ function mail_shift_change($old_shift, $new_shift) */ function mail_shift_delete($shift) { - $users = ShiftEntries_by_shift($shift["SID"]); - $room = Room($shift["RID"]); + $users = ShiftEntries_by_shift($shift['SID']); + $room = Room($shift['RID']); - $message = _("A Shift you are registered on was deleted:") . "\n"; + $message = _('A Shift you are registered on was deleted:') . "\n"; - $message .= $shift["name"] . "\n"; - $message .= $shift["title"] . "\n"; - $message .= date("Y-m-d H:i", $shift["start"]) . " - " . date("H:i", $shift["end"]) . "\n"; - $message .= $room["Name"] . "\n"; + $message .= $shift['name'] . "\n"; + $message .= $shift['title'] . "\n"; + $message .= date('Y-m-d H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']) . "\n"; + $message .= $room['Name'] . "\n"; foreach ($users as $user) { - if ($user["email_shiftinfo"]) { - engelsystem_email_to_user($user, '[engelsystem] ' . _("Your Shift was deleted"), $message, true); + if ($user['email_shiftinfo']) { + engelsystem_email_to_user($user, '[engelsystem] ' . _('Your Shift was deleted'), $message, true); } } } @@ -96,34 +96,34 @@ function mail_shift_delete($shift) */ function mail_shift_assign($user, $shift) { - if (!$user["email_shiftinfo"]) { + if (!$user['email_shiftinfo']) { return; } - $room = Room($shift["RID"]); + $room = Room($shift['RID']); - $message = _("You have been assigned to a Shift:") . "\n"; - $message .= $shift["name"] . "\n"; - $message .= $shift["title"] . "\n"; - $message .= date("Y-m-d H:i", $shift["start"]) . " - " . date("H:i", $shift["end"]) . "\n"; - $message .= $room["Name"] . "\n"; + $message = _('You have been assigned to a Shift:') . "\n"; + $message .= $shift['name'] . "\n"; + $message .= $shift['title'] . "\n"; + $message .= date('Y-m-d H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']) . "\n"; + $message .= $room['Name'] . "\n"; - engelsystem_email_to_user($user, '[engelsystem] ' . _("Assigned to Shift"), $message, true); + engelsystem_email_to_user($user, '[engelsystem] ' . _('Assigned to Shift'), $message, true); } function mail_shift_removed($user, $shift) { - if (!$user["email_shiftinfo"]) { + if (!$user['email_shiftinfo']) { return; } - $room = Room($shift["RID"]); + $room = Room($shift['RID']); - $message = _("You have been removed from a Shift:") . "\n"; - $message .= $shift["name"] . "\n"; - $message .= $shift["title"] . "\n"; - $message .= date("Y-m-d H:i", $shift["start"]) . " - " . date("H:i", $shift["end"]) . "\n"; - $message .= $room["Name"] . "\n"; + $message = _('You have been removed from a Shift:') . "\n"; + $message .= $shift['name'] . "\n"; + $message .= $shift['title'] . "\n"; + $message .= date('Y-m-d H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']) . "\n"; + $message .= $room['Name'] . "\n"; - engelsystem_email_to_user($user, '[engelsystem] ' . _("Removed from Shift"), $message, true); + engelsystem_email_to_user($user, '[engelsystem] ' . _('Removed from Shift'), $message, true); } diff --git a/includes/mailer/users_mailer.php b/includes/mailer/users_mailer.php index c2fa8c8d..b3f335d7 100644 --- a/includes/mailer/users_mailer.php +++ b/includes/mailer/users_mailer.php @@ -8,7 +8,7 @@ function mail_user_delete($user) { return engelsystem_email_to_user( $user, - '[engelsystem] ' . _("Your account has been deleted"), - _("Your angelsystem account has been deleted. If you have any questions regarding your account deletion, please contact heaven.") + '[engelsystem] ' . _('Your account has been deleted'), + _('Your angelsystem account has been deleted. If you have any questions regarding your account deletion, please contact heaven.') ); } |