Ignore:
Timestamp:
Jan 28, 2013, 5:25:11 PM (11 years ago)
Author:
mistic100
Message:

change $BODY_ID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/include/functions.inc.php

    r19180 r20441  
    1313    $page['section'] = 'contact';
    1414    $page['title'] = $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.CONTACT_FORM_PUBLIC.'">'.l10n('Contact').'</a>';
     15   
     16  }
     17}
     18function contact_form_header()
     19{
     20  global $page, $template;
     21 
     22  if (isset($page['section']) and $page['section'] == 'contact')
     23  {
     24    $page['body_id'] = 'theContactPage';
     25    $template->assign('BODY_ID', $page['body_id']);
    1526  }
    1627}
     
    352363function check_email_validity($mail_address)
    353364{
    354   if (version_compare(PHP_VERSION, '5.2.0') >= 0)
     365  if (function_exists('email_check_format'))
     366  {
     367    return email_check_format($mail_address); // Piwigo 2.5
     368  }
     369  else if (version_compare(PHP_VERSION, '5.2.0') >= 0)
    355370  {
    356371    return filter_var($mail_address, FILTER_VALIDATE_EMAIL)!==false;
Note: See TracChangeset for help on using the changeset viewer.