mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user