Revision 745
Added by doc over 16 years ago
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)