Browse Source

Make theme settings the default tab

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
796c6b0ea2
2 changed files with 6 additions and 6 deletions
  1. 1 1
      Sources/Admin.php
  2. 5 5
      Sources/Themes.php

+ 1 - 1
Sources/Admin.php

@@ -144,8 +144,8 @@ function AdminMain()
 					'custom_url' => $scripturl . '?action=admin;area=theme',
 					'icon' => 'themes.png',
 					'subsections' => array(
-						'admin' => array($txt['themeadmin_admin_title']),
 						'list' => array($txt['themeadmin_list_title']),
+						'admin' => array($txt['themeadmin_admin_title']),
 						'reset' => array($txt['themeadmin_reset_title']),
 						'edit' => array($txt['themeadmin_edit_title']),
 					),

+ 5 - 5
Sources/Themes.php

@@ -58,8 +58,8 @@ function ThemesMain()
 
 	// Theme administration, removal, choice, or installation...
 	$subActions = array(
-		'admin' => 'ThemeAdmin',
 		'list' => 'ThemeList',
+		'admin' => 'ThemeAdmin',
 		'reset' => 'SetThemeOptions',
 		'options' => 'SetThemeOptions',
 		'install' => 'ThemeInstall',
@@ -77,12 +77,12 @@ function ThemesMain()
 			'help' => 'themes',
 			'description' => $txt['themeadmin_description'],
 			'tabs' => array(
-				'admin' => array(
-					'description' => $txt['themeadmin_admin_desc'],
-				),
 				'list' => array(
 					'description' => $txt['themeadmin_list_desc'],
 				),
+				'admin' => array(
+					'description' => $txt['themeadmin_admin_desc'],
+				),
 				'reset' => array(
 					'description' => $txt['themeadmin_reset_desc'],
 				),
@@ -97,7 +97,7 @@ function ThemesMain()
 	if (isset($_GET['sa']) && !empty($subActions[$_GET['sa']]))
 		$subActions[$_GET['sa']]();
 	else
-		$subActions['admin']();
+		$subActions['list']();
 }
 
 /**