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.

This commit is contained in:
markjcrane 2015-12-20 23:01:28 -07:00
parent 2c2d49a4d4
commit 1d80b00ea1
1 changed files with 1 additions and 9 deletions

View File

@ -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";