Browse Source

update location

causefx 8 years ago
parent
commit
462ef0f900
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/update-functions.php

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

@@ -4,7 +4,7 @@
 // Upgrade the installation
 function upgradeInstall($branch = 'v2-master', $stage) {
     $url = 'https://github.com/causefx/Organizr/archive/'.$branch.'.zip';
-    $file = "upgrade.zip";
+    $file = dirname(__DIR__,2).DIRECTORY_SEPARATOR."upgrade.zip";
     $source = dirname(__DIR__,2).DIRECTORY_SEPARATOR.'upgrade'.DIRECTORY_SEPARATOR.'Organizr-'.str_replace('v2','2',$branch).DIRECTORY_SEPARATOR;
     $cleanup = dirname(__DIR__,2) .DIRECTORY_SEPARATOR."upgrade".DIRECTORY_SEPARATOR;
     $destination = dirname(__DIR__,2).DIRECTORY_SEPARATOR;