Project

General

Profile

« Previous | Next » 

Revision 798

Added by thorn almost 17 years ago

fixed: Language-redirect removed query-string from URL

View differences:

trunk/CHANGELOG
10 10
# = Bugfix
11 11
! = Update/Change
12 12

  
13
------------------------------------- 2.7.0 -------------------------------------
13
------------------------------------- 2.7.0 -------------------------------------
14
04-Apr-2008 Thomas Hornik
15
#	fixed: Language-redirect removed query-string from URL
14 16
04-Apr-2008 Christian Sommer
15 17
!	set WB version to 2.7 (RC3) for the next upcoming release candidate
16 18
03-Apr-2008 Christian Sommer
trunk/wb/framework/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