Forums

Custom code after upgrade 3.6.2 php7

matteo4481 09 Oct, 2016
Hello,
i have this code inside a custom tag:

<?php
$lang = \JFactory::getLanguage();
$tag= $lang->getTag();
switch ( $tag ) {
  case 'it-IT':
  default:
    $lang_string = 'myurl';
    break;
  case 'nl-NL':
    $lang_string = 'myurl';
    break;
  case 'en-GB':
    $lang_string = 'myurl';
    break;
  case 'fr-FR':  default:
    $lang_string = 'myurl';
    break;
  case 'fr-CH':  default:
    $lang_string = 'myurl';
    break;
}
$url = $lang_string; // add the other parts of the thank you page url here 
$app = \JFactory::getApplication();
$app->redirect($url);
?>


after update joomla to 3.6.2 and php to 7.011 the script send me to "websiteurl/component/chronoforms5/?chronoform=formname&event=submit" instead of the url called by redirect($url) but i don't know why

CF5 is ready for php7?
This topic is locked and no more replies can be posted.