瀏覽代碼

Corrected incorrect merge

Matthew Vale 9 年之前
父節點
當前提交
f77dc6d4cb
共有 2 個文件被更改,包括 4 次插入8 次删除
  1. 2 4
      core/upgrade/app_defaults.php
  2. 2 4
      core/upgrade/index.php

+ 2 - 4
core/upgrade/app_defaults.php

@@ -34,10 +34,8 @@ if ($domains_processed == 1) {
 				}
 
 			//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();
 		}
 
 	//update the software table

+ 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'];
 				}