Pārlūkot izejas kodu

geez more location work

causefx 8 gadi atpakaļ
vecāks
revīzija
3e47831374
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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{