Changeset 28458 for extensions/ContactForm/include/functions.inc.php
- Timestamp:
- May 13, 2014, 7:46:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/include/functions.inc.php
r28324 r28458 17 17 $page['is_homepage'] = false; 18 18 19 $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.CONTACT_FORM_PUBLIC.'">'.l10n('Contact').'</a>'; 19 $page['section_title'] = 20 '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>' 21 .$conf['level_separator'] 22 .'<a href="'.CONTACT_FORM_PUBLIC.'">'.l10n('Contact').'</a>'; 20 23 } 21 24 } … … 233 236 234 237 // get admin emails 235 $ emails= get_contact_emails($comm['group']);236 if (!count($ emails))238 $to = get_contact_emails($comm['group']); 239 if (!count($to)) 237 240 { 238 241 $page['errors'][] = l10n('Error while sending e-mail'); … … 246 249 $prefix = str_replace('%gallery_title%', $conf['gallery_title'], $conf['ContactForm']['cf_subject_prefix']); 247 250 248 $from = $Cc = null;251 $from = $Cc = $Bcc = null; 249 252 if (!empty($comm['email'])) 250 253 { … … 255 258 if ($comm['send_copy']) 256 259 { 260 $Bcc = $to; 261 $to = null; 257 262 $Cc = $from; 258 263 } … … 263 268 264 269 $result = pwg_mail( 265 $ emails,270 $to, 266 271 array( 267 272 'subject' => '['.$prefix.'] '.$comm['subject'], 273 'content' => $comm['content'], 268 274 'mail_title' => $prefix, 269 275 'mail_subtitle' => $comm['subject'], 270 276 'content_format' => 'text/html', 277 'email_format' => $conf['ContactForm']['cf_mail_type'], 271 278 'from' => $from, 272 279 'Cc' => $Cc, 280 'Bcc' => $Bcc, 273 281 ), 274 282 array( … … 328 336 ORDER BY name ASC 329 337 '; 330 $emails = array_from_query($query);338 $emails = query2array($query); 331 339 332 340 return $emails;
Note: See TracChangeset
for help on using the changeset viewer.