Revision 745
Added by doc over 16 years ago
trunk/CHANGELOG | ||
---|---|---|
10 | 10 |
# = Bugfix |
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 |
------------------------------------- 2.7.0 ------------------------------------- |
|
14 |
08-Mar-2008 Thomas Hornik |
|
13 |
------------------------------------- 2.7.0 ------------------------------------- |
|
14 |
11-Mar-2008 Christian Sommer |
|
15 |
# fixed issue with WYSIWYG pages (appears if backend language and page frontend language differs) |
|
16 |
08-Mar-2008 Thomas Hornik |
|
15 | 17 |
# fixed issue with news and end-date |
16 | 18 |
04-Mar-2008 Christian Sommer |
17 | 19 |
# fixed issue with smart view URL link |
trunk/wb/framework/class.admin.php | ||
---|---|---|
79 | 79 |
$user_language = ($get_user_language) ? $get_user_language->fetchRow() : ''; |
80 | 80 |
// prevent infinite loop if language file is not XX.php (e.g. DE_du.php) |
81 | 81 |
$user_language = substr($user_language[0],0,2); |
82 |
if((LANGUAGE != $user_language) && file_exists(WB_PATH .'/languages/' .$user_language .'.php')) { |
|
83 |
header('Location: '.$_SERVER['PHP_SELF'].'?lang='.$user_language); |
|
82 |
if((LANGUAGE != $user_language) && file_exists(WB_PATH .'/languages/' .$user_language .'.php') |
|
83 |
&& strpos($_SERVER['PHP_SELF'],'/admin/') !== false) { |
|
84 |
// check if page_id is set |
|
85 |
$page_id_url = (isset($_GET['page_id'])) ? '&page_id=' .(int) $_GET['page_id'] : ''; |
|
86 |
$section_id_url = (isset($_GET['section_id'])) ? '§ion_id=' .(int) $_GET['section_id'] : ''; |
|
87 |
header('Location: '.$_SERVER['PHP_SELF'] .'?lang='.$user_language .$page_id_url .$section_id_url); |
|
84 | 88 |
exit(); |
85 | 89 |
} |
86 | 90 |
|
Also available in: Unified diff
fixed issue with WYSIWYG pages (appears if backend language and page frontend language differs)