瀏覽代碼

Remove upgrade switch from advanced -> upgrade page. The work it did is handled by app/scripts/resources/classes/scripts.php and app_defaults.php calls it. So when running Advanced -> Upgrade -> App Defaults the scripts app_defaults.php will copy the scripts and rewrite the config.lua.

markjcrane 9 年之前
父節點
當前提交
dc879f8fc2
共有 1 個文件被更改,包括 1 次插入9 次删除
  1. 1 9
      core/upgrade/index.php

+ 1 - 9
core/upgrade/index.php

@@ -35,7 +35,6 @@ if (
 	!permission_exists('upgrade_source') &&
 	!permission_exists('upgrade_schema') &&
 	!permission_exists('upgrade_apps') &&
-	!permission_exists('upgrade_switch') &&
 	!permission_exists('menu_restore') &&
 	!permission_exists('group_edit')
 	) {
@@ -122,13 +121,6 @@ if (sizeof($_POST) > 0) {
 		$response_message = "Permission Defaults Restored";
 	}
 
-	// upgrade switch
-	if ($do["switch"] && permission_exists("upgrade_switch")) {
-		$included = true;
-		require_once("core/install/upgrade_switch.php");
-		$response_message = "Switch Upgraded";
-	}
-
 	if (sizeof($_POST['do']) > 1) {
 		$response_message = $text['message-upgrade'];
 	}
@@ -137,7 +129,7 @@ if (sizeof($_POST) > 0) {
 	header("Location: ".PROJECT_PATH."/core/upgrade/index.php");
 	exit;
 
-} // if
+} // end if
 
 
 require_once "resources/header.php";