Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missed function #180

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions-sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ function checkUserPrivileges($number)
{
global $db, $sms, $smsSender, $user;
$userId=$user->findUserIdByNumber($number);
$privileges=getPrivileges($userId);
$privileges=$user->findPrivileges($userId);
if ($privileges==0)
{
$smsSender->send($number,_('Sorry, this command is only available for the privileged users.'));
Expand Down
2 changes: 1 addition & 1 deletion actions-web.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ function resetpassword($number)
_('Your password has been reset successfully.') . "\n\n" .
_('Your new password is:') . "\n" . $password;

$mailer->send($email, $subject, $message);
$mailer->sendMail($email, $subject, $message);
response(_('Your password has been reset successfully.') . ' ' . _('Check your email.'));
}

Expand Down
8 changes: 4 additions & 4 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ function notifyAdmins($message, $notificationtype = 0)
while ($row = $result->fetch_assoc()) {
if ($notificationtype == 0) {
$smsSender->send($row['number'], $message);
$mailer->send($watches['email'], $systemname . ' ' . _('notification'), $message);
$mailer->sendMail($watches['email'], $systemname . ' ' . _('notification'), $message);
} else {
$mailer->send($row['mail'], $systemname . ' ' . _('notification'), $message);
$mailer->sendMail($row['mail'], $systemname . ' ' . _('notification'), $message);
}
}//copy to Trello board -- might be added as a person instead
if ($notificationtype == 0) {
$mailer->send('cyklokoalicia1+q31wfjphbgkuelf19hlb@boards.trello.com', $message, $message);
$mailer->sendMail('cyklokoalicia1+q31wfjphbgkuelf19hlb@boards.trello.com', $message, $message);
}
}

Expand All @@ -195,7 +195,7 @@ function sendConfirmationEmail($emailto)
_('you have been registered into community bike share system') . ' ' . $systemname . ".\n\n" .
_('System rules are available here:') . "\n" . $systemrules . "\n\n" .
_('By clicking the following link you agree to the System rules:') . "\n" . $systemURL . 'agree.php?key=' . $userKey;
$mailer->send($emailto, $subject, $message);
$mailer->sendMail($emailto, $subject, $message);
}

function confirmUser($userKey)
Expand Down