Explorar o código

geez more location work

causefx %!s(int64=8) %!d(string=hai) anos
pai
achega
3e47831374
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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{