Przeglądaj źródła

timeout's for update

causefx 8 lat temu
rodzic
commit
ca4bb3b482
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      api/functions/update-functions.php

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

@@ -3,6 +3,8 @@
 
 // Upgrade the installation
 function upgradeInstall($branch = 'v2-master', $stage) {
+	ini_set('max_execution_time',0);
+	set_time_limit(0);
     $url = 'https://github.com/causefx/Organizr/archive/'.$branch.'.zip';
     $file = "upgrade.zip";
     $source = dirname(__DIR__,2).DIRECTORY_SEPARATOR.'upgrade'.DIRECTORY_SEPARATOR.'Organizr-'.str_replace('v2','2',$branch).DIRECTORY_SEPARATOR;
@@ -48,7 +50,7 @@ function upgradeInstall($branch = 'v2-master', $stage) {
 			}
 			break;
 		default:
-			# code...
+			return false;
 			break;
 	}
 	return false;