mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-21 20:34:57 +09:00
fix email resend()
it was using old System::getEmailSettings() which was trying to find email config in settings table
This commit is contained in:
1 parent
2382aca08b
commit
f39d4fb4f2
3 files changed
+5
-33
No files matched your search
@@ -1538,30 +1538,6 @@ class Service
|
||||
return $this->di['db']->getAssoc($query);
|
||||
}
|
||||
|
||||
public function getEmailSettings()
|
||||
{
|
||||
$params = array(
|
||||
'mailer',
|
||||
'smtp_authentication',
|
||||
'smtp_security',
|
||||
'smtp_port',
|
||||
'smtp_username',
|
||||
'smtp_password',
|
||||
'smtp_host',
|
||||
);
|
||||
$res = $this->_getMultipleParams($params);
|
||||
|
||||
return array(
|
||||
'mailer' => $this->di['array_get']($res, 'mailer', 'sendmail'),
|
||||
'smtp_authentication' => (isset($res['smtp_authentication']) && $res['smtp_authentication']) ? 'login' : NULL,
|
||||
'smtp_host' => $this->di['array_get']($res, 'smtp_host'),
|
||||
'smtp_security' => (isset($res['smtp_security']) && $res['smtp_security'] != 'no') ? $res['smtp_security'] : NULL,
|
||||
'smtp_port' => $this->di['array_get']($res, 'smtp_port'),
|
||||
'smtp_username' => $this->di['array_get']($res, 'smtp_username'),
|
||||
'smtp_password' => $this->di['array_get']($res, 'smtp_password'),
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return \Box_Version::VERSION;
|
||||
|
||||
Reference in new issue
Block a user