mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Replce array_first_key() with array_key_first(), etc.
This commit is contained in:
parent
1c92b1baf5
commit
4193edde25
7 changed files with 12 additions and 12 deletions
|
|
@ -220,7 +220,7 @@
|
|||
{@ $conf_exists = config("sms.$driver_name.api_key")}
|
||||
<select type="select" name="sms_{$driver_name}_{$conf_name}" id="sms_{$driver_name}_{$conf_name}">
|
||||
<!--@foreach($driver_definition['api_urls'] as $api_url => $api_url_name)-->
|
||||
<option value="{$api_url}" selected="selected"|cond="$conf_value === $api_url || (!$conf_value && $conf_exists && $api_url === array_last_key($driver_definition['api_urls']))">{$api_url_name}</option>
|
||||
<option value="{$api_url}" selected="selected"|cond="$conf_value === $api_url || (!$conf_value && $conf_exists && $api_url === array_key_last($driver_definition['api_urls']))">{$api_url_name}</option>
|
||||
<!--@endforeach-->
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class Advanced_MailerController extends Advanced_Mailer
|
|||
$recipients = $mail->message->getTo() ?: array();
|
||||
if ($recipients)
|
||||
{
|
||||
$first_recipient = array_first_key($recipients);
|
||||
$first_recipient = array_key_first($recipients);
|
||||
if ($exception_driver = $this->getSendingMethodForEmailAddress($first_recipient, $config))
|
||||
{
|
||||
$driver_class = '\\Rhymix\\Framework\\Drivers\Mail\\' . $exception_driver;
|
||||
|
|
@ -51,7 +51,7 @@ class Advanced_MailerController extends Advanced_Mailer
|
|||
else
|
||||
{
|
||||
$sender = $mail->message->getFrom();
|
||||
$original_sender_email = $sender ? array_first_key($sender) : null;
|
||||
$original_sender_email = $sender ? array_key_first($sender) : null;
|
||||
$original_sender_name = $sender ? array_first($sender) : null;
|
||||
list($default_from, $default_name) = $this->getDefaultEmailIdentity();
|
||||
if ($original_sender_email !== $default_from && $default_from)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue