Revision 749
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 |
// obtain the admin folder (e.g. /admin) |
|
83 |
$admin_folder = str_replace(WB_PATH, '', ADMIN_PATH); |
|
82 | 84 |
if((LANGUAGE != $user_language) && file_exists(WB_PATH .'/languages/' .$user_language .'.php') |
83 |
&& strpos($_SERVER['PHP_SELF'],'/admin/') !== false) {
|
|
85 |
&& strpos($_SERVER['PHP_SELF'],$admin_folder.'/') !== false) {
|
|
84 | 86 |
// check if page_id is set |
85 | 87 |
$page_id_url = (isset($_GET['page_id'])) ? '&page_id=' .(int) $_GET['page_id'] : ''; |
86 | 88 |
$section_id_url = (isset($_GET['section_id'])) ? '§ion_id=' .(int) $_GET['section_id'] : ''; |
Also available in: Unified diff
Removed hardcoded /admin folder strings from WB core files where possible