Ignore:
Timestamp:
Sep 28, 2012, 1:58:02 PM (12 years ago)
Author:
mistic100
Message:
  • add redirect url option
  • remove test code
  • fix fatal error at first installation
File:
1 edited

Legend:

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

    r18315 r18331  
    2727  {
    2828    case 'validate':
    29       array_push($page['infos'], l10n('E-mail sent successfully'));
    30       unset($contact);
     29      $_SESSION['page_infos'][] = l10n('E-mail sent successfully');
     30      if (!empty($conf['ContactForm']['cf_redirect_url']))
     31      {
     32        redirect($conf['ContactForm']['cf_redirect_url']);
     33      }
     34      else
     35      {
     36        redirect(CONTACT_FORM_PUBLIC);
     37      }
    3138      break;
    3239    case 'moderate':
     
    3441      break;
    3542    default:
    36       trigger_error('Invalid comment action '.$comment_action, E_USER_WARNING);
     43      trigger_error('Invalid action '.$comment_action, E_USER_WARNING);
    3744  }
    3845}
Note: See TracChangeset for help on using the changeset viewer.