if (isset($this->request->post['language_code'])) {
$this->session->data['language'] = $this->request->post['language_code'];
if (isset($this->request->post['redirect'])) {
$parsed_url = parse_url($this->request->post['redirect']);
$path = isset($parsed_url['path']) ? '/' . $parsed_url['path'] : '';
$query = isset($parsed_url['query']) ? str_replace('&', '&',$parsed_url['query']) : '';
$this->redirect($this->url->link('',$query));
} else {
$this->redirect($this->url->link('common/home'));
}
}
То header.php ?
Обсуждают сегодня