소스 검색

geez more location work

causefx 8 년 전
부모
커밋
3e47831374
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/functions/update-functions.php

+ 1 - 1
api/functions/update-functions.php

@@ -89,7 +89,7 @@ function downloadFile($url, $path){
 }
 function unzipFile($zipFile){
 	$zip = new ZipArchive;
-	$extractPath = "upgrade/";
+	$extractPath = dirname(__DIR__,2).DIRECTORY_SEPARATOR."upgrade/";
 	if($zip->open($extractPath . $zipFile) != "true"){
 		//writeLog("error", "organizr could not unzip upgrade.zip");
 	}else{