Browse Source

Remove the old reference to install class and replaced with install_switch.

markjcrane 9 năm trước cách đây
mục cha
commit
e8ef31de89
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      core/upgrade/index.php

+ 2 - 4
core/upgrade/index.php

@@ -72,10 +72,8 @@ if (sizeof($_POST) > 0) {
 			//update scripts folder, if allowed (default)
 				if ($_SESSION['switch']['scripts']['dir'] != '') {
 					//copy the files and directories from resources/install
-						$install = new install;
-						$install->domain_uuid = $domain_uuid;
-						$install->switch_scripts_dir = $_SESSION['switch']['scripts']['dir'];
-						$install->copy_scripts();
+						$obj = new install_switch;
+						$obj->upgrade();
 					//set the message
 						$response_message = $text['message-upgrade_source_scripts'];
 				}