Revision 798
Added by thorn over 16 years ago
class.frontend.php | ||
---|---|---|
144 | 144 |
$this->page = $get_page->fetchRow(); |
145 | 145 |
// Check if the page language is also the selected language. If not, send headers again. |
146 | 146 |
if ($this->page['language']!=LANGUAGE) { |
147 |
header('Location: '.$this->page_link($this->page['link']).'?lang='.$this->page['language']); |
|
147 |
if(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != '') { // check if there is an query-string |
|
148 |
header('Location: '.$this->page_link($this->page['link']).'?lang='.$this->page['language'].'&'.$_SERVER['QUERY_STRING']); |
|
149 |
} else { |
|
150 |
header('Location: '.$this->page_link($this->page['link']).'?lang='.$this->page['language']); |
|
151 |
} |
|
148 | 152 |
exit(); |
149 | 153 |
} |
150 | 154 |
// Begin code to set details as either variables of constants |
Also available in: Unified diff
fixed: Language-redirect removed query-string from URL