Selaa lähdekoodia

DO NOT USE!!!!!
fix download script to be recursive

causefx 7 vuotta sitten
vanhempi
commit
8be79e704b
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      api/functions/update-functions.php
  2. 1 1
      js/functions.js

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

@@ -94,7 +94,7 @@ function downloadFileToPath($from, $to, $path)
 {
 	ini_set('max_execution_time', 0);
 	set_time_limit(0);
-	if (@!mkdir($path)) {
+	if (@!mkdir($path, 0777, true)) {
 		//writeLog("error", "organizr could not create upgrade folder");
 	}
 	$file = fopen($from, 'rb');

+ 1 - 1
js/functions.js

@@ -1123,7 +1123,7 @@ function installTheme(theme=null){
     organizrAPI('POST','api/?v1/theme/install',{theme:theme}).success(function(data) {
         var html = JSON.parse(data);
         console.log(data);
-        if(html.data.substr(0, 7) == 'Success'){
+        if(html.data == true){
             activeInfo.settings.misc.themeInstalled = theme.name;
             activeInfo.settings.misc.themeVersion = theme.version;
             loadMarketplace('themes');