瀏覽代碼

added save_switch_xml during install

Matthew Vale 9 年之前
父節點
當前提交
4fc6a01927
共有 3 個文件被更改,包括 3 次插入6 次删除
  1. 0 4
      core/install/index.php
  2. 1 0
      core/install/resources/classes/install_switch.php
  3. 2 2
      themes/enhanced/app_defaults.php

+ 0 - 4
core/install/index.php

@@ -78,10 +78,6 @@ if (!if_group("superadmin")) {
 	echo "</table>\n";
 	echo "</form>\n";
 
-	echo "<br><br>";
-
-	echo "<p>WiP</p>";
-
 //include the footer
 	require_once "resources/footer.php";
 ?>

+ 1 - 0
core/install/resources/classes/install_switch.php

@@ -186,6 +186,7 @@ include "root.php";
 			$this->copy_conf();
 			$this->copy_scripts();
 			$this->create_config_lua();
+			save_switch_xml();
 			$this->restart_switch();
 			$this->write_progress("Install completed for switch");
 		}

+ 2 - 2
themes/enhanced/app_defaults.php

@@ -287,7 +287,7 @@ if ($domains_processed == 1) {
 		$array[$x]['default_setting_category'] = 'theme';
 		$array[$x]['default_setting_subcategory'] = 'background_color';
 		$array[$x]['default_setting_name'] = 'array';
-		$array[$x]['default_setting_value'] = '#ffffff';
+		$array[$x]['default_setting_value'] = '#6c89b5';
 		$array[$x]['default_setting_enabled'] = 'true';
 		$array[$x]['default_setting_order'] = '0';
 		$array[$x]['default_setting_description'] = 'Set a background (HTML compatible) color.';
@@ -295,7 +295,7 @@ if ($domains_processed == 1) {
 		$array[$x]['default_setting_category'] = 'theme';
 		$array[$x]['default_setting_subcategory'] = 'background_color';
 		$array[$x]['default_setting_name'] = 'array';
-		$array[$x]['default_setting_value'] = '#e7ebf1';
+		$array[$x]['default_setting_value'] = '#144794';
 		$array[$x]['default_setting_order'] = '1';
 		$array[$x]['default_setting_enabled'] = 'true';
 		$array[$x]['default_setting_description'] = 'Set a secondary background (HTML compatible) color, for a gradient effect.';