Parcourir la source

geez more location work

causefx il y a 8 ans
Parent
commit
3e47831374
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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{