From 1d80b00ea16f92888ec182df9df7bf485a8118f5 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 20 Dec 2015 23:01:28 -0700 Subject: [PATCH] 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. --- core/upgrade/index.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index 376c7b54d8..be6612c4ca 100644 --- a/core/upgrade/index.php +++ b/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";