Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Fixed admin login + emails
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dickenson committed May 20, 2016
1 parent 2d1f170 commit 6ba8828
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
$template->assign_vars(array(
'ERROR' => (isset($ERR)) ? $ERR : '',
'SITEURL' => $system->SETTINGS['siteurl'],
'THEME' => $system->SETTINGS['theme'],
'THEME' => $system->SETTINGS['admin_theme'],
'L_COPY_YEAR' => date("Y"),
'PAGE' => ($db->numrows() == 0) ? 1 : 2
));
Expand Down
9 changes: 7 additions & 2 deletions includes/class_email_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,15 @@ function sendmail()
else
$sent = mail($this->to, $this->subject, $this->message, $this->headers);
}
if ($sent)
return false;
else
return true;
break;
}

if (is_array($this->to)) {
if (is_array($this->to))
{
for ($i = 0; $i < count($this->to); $i++)
{
try {
Expand Down Expand Up @@ -501,7 +506,7 @@ function sendmail()
$this->add_error($e->getMessage());
}
}
return implode('<br/>',$this->errors);
return implode('<br/>', $this->errors);
}

function email_basic($subject, $to, $message, $from = '')
Expand Down

0 comments on commit 6ba8828

Please sign in to comment.