Changeset 12102
- Timestamp:
- Sep 8, 2011, 12:03:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin.php
r11368 r12102 66 66 conf_update_param('admin_theme', $new_admin_theme); 67 67 68 redirect('admin.php'); 68 $url_params = array(); 69 foreach (array('page', 'tab', 'section') as $url_param) 70 { 71 if (isset($_GET[$url_param])) 72 { 73 $url_params[] = $url_param.'='.$_GET[$url_param]; 74 } 75 } 76 77 $redirect_url = 'admin.php'; 78 if (count($url_params) > 0) 79 { 80 $redirect_url.= '?'.implode('&', $url_params); 81 } 82 83 redirect($redirect_url); 69 84 } 70 85 … … 82 97 // | Variables init | 83 98 // +-----------------------------------------------------------------------+ 99 100 $change_theme_url = PHPWG_ROOT_PATH.'admin.php?'; 101 $test_get = $_GET; 102 unset($test_get['page']); 103 unset($test_get['section']); 104 unset($test_get['tag']); 105 if (count($test_get) == 0) 106 { 107 $change_theme_url.= str_replace('&', '&', $_SERVER['QUERY_STRING']).'&'; 108 } 109 $change_theme_url.= 'change_theme=1'; 84 110 85 111 // ?page=plugin-community-pendings is an clean alias of … … 162 188 'U_PLUGINS'=> $link_start.'plugins', 163 189 'U_ADD_PHOTOS' => $link_start.'photos_add', 164 'U_CHANGE_THEME' => PHPWG_ROOT_PATH.'admin.php?change_theme=1',190 'U_CHANGE_THEME' => $change_theme_url, 165 191 'U_PENDING_COMMENTS' => $link_start.'comments', 166 192 'U_UPDATES' => $link_start.'updates',
Note: See TracChangeset
for help on using the changeset viewer.