FastSecureContactForm working with qTranslate
In /wp-content/plugins/si-contact-form/si-contact-form.php near line 224 you should have
FastSecureContactForm working with qTranslate
In /wp-content/plugins/si-contact-form/si-contact-form.php near line 224 you should have
// set the type of request (SSL or not)
if ( getenv(‘HTTPS’) == ‘on’ ) {
$form_action_url = ‘https://’.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’];
} else {
$form_action_url = ‘http://’.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’];
}
and replace 'em with
if(get_locale() == 'en_US') {
if ( getenv('HTTPS') == 'on' ) {
$form_action_url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
} else {
$form_action_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
}
} else {
if ( getenv('HTTPS') == 'on' ) {
$form_action_url = 'https://'.$_SERVER['HTTP_HOST'].'/fr/'.$_SERVER['REQUEST_URI'];
} else {
$form_action_url = 'http://'.$_SERVER['HTTP_HOST'].'/fr/'.$_SERVER['REQUEST_URI'];
}
}